Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #36129 > unrolled thread

Inexpensive JSP/Servlet hosting?

Started bygalt_57@hotmail.com
First post2016-12-27 19:45 -0800
Last post2017-01-13 19:53 -0500
Articles 20 on this page of 34 — 9 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Inexpensive JSP/Servlet hosting? galt_57@hotmail.com - 2016-12-27 19:45 -0800
    Re: Inexpensive JSP/Servlet hosting? Martin Gregorie <martin@address-in-sig.invalid> - 2016-12-28 12:26 +0000
      Re: Inexpensive JSP/Servlet hosting? Eric Douglas <e.d.programmer@gmail.com> - 2016-12-28 06:15 -0800
        Re: Inexpensive JSP/Servlet hosting? Arne Vajhøj <arne@vajhoej.dk> - 2016-12-28 20:57 -0500
          Re: Inexpensive JSP/Servlet hosting? Martin Gregorie <martin@address-in-sig.invalid> - 2016-12-29 12:30 +0000
        Re: Inexpensive JSP/Servlet hosting? Martin Gregorie <martin@address-in-sig.invalid> - 2016-12-28 19:29 +0000
      Re: Inexpensive JSP/Servlet hosting? Davej <galt_57@hotmail.com> - 2016-12-28 09:15 -0800
        Re: Inexpensive JSP/Servlet hosting? Arne Vajhøj <arne@vajhoej.dk> - 2016-12-28 20:52 -0500
        Re: Inexpensive JSP/Servlet hosting? Jerry Stuckle <jstucklex@attglobal.net> - 2016-12-28 16:36 -0500
          Re: Inexpensive JSP/Servlet hosting? Eric Douglas <e.d.programmer@gmail.com> - 2016-12-28 13:52 -0800
            Re: Inexpensive JSP/Servlet hosting? galt_57@hotmail.com - 2016-12-29 10:43 -0800
              Re: Inexpensive JSP/Servlet hosting? Arne Vajhøj <arne@vajhoej.dk> - 2016-12-29 19:32 -0500
                Re: Inexpensive JSP/Servlet hosting? Martin Gregorie <martin@address-in-sig.invalid> - 2016-12-30 12:24 +0000
                  Re: Inexpensive JSP/Servlet hosting? Arne Vajhøj <arne@vajhoej.dk> - 2016-12-30 20:39 -0500
              Re: Inexpensive JSP/Servlet hosting? Martin Gregorie <martin@address-in-sig.invalid> - 2016-12-29 20:37 +0000
            Re: Inexpensive JSP/Servlet hosting? Martin Gregorie <martin@address-in-sig.invalid> - 2016-12-28 23:50 +0000
        Re: Inexpensive JSP/Servlet hosting? Eric Douglas <e.d.programmer@gmail.com> - 2016-12-28 13:39 -0800
        Re: Inexpensive JSP/Servlet hosting? Martin Gregorie <martin@address-in-sig.invalid> - 2016-12-28 21:18 +0000
        Re: Inexpensive JSP/Servlet hosting? Martin Gregorie <martin@address-in-sig.invalid> - 2016-12-28 19:52 +0000
          Re: Inexpensive JSP/Servlet hosting? galt_57@hotmail.com - 2016-12-28 12:30 -0800
    Re: Inexpensive JSP/Servlet hosting? Arne Vajhøj <arne@vajhoej.dk> - 2016-12-28 11:34 -0500
      Re: Inexpensive JSP/Servlet hosting? galt_57@hotmail.com - 2016-12-28 10:44 -0800
        Re: Inexpensive JSP/Servlet hosting? Arne Vajhøj <arne@vajhoej.dk> - 2016-12-28 20:47 -0500
          Re: Inexpensive JSP/Servlet hosting? Jerry Stuckle <jstucklex@attglobal.net> - 2016-12-29 17:55 -0500
            Re: Inexpensive JSP/Servlet hosting? galt_57@hotmail.com - 2016-12-31 12:16 -0800
              Re: Inexpensive JSP/Servlet hosting? Jerry Stuckle <jstucklex@attglobal.net> - 2016-12-31 18:34 -0500
              Re: Inexpensive JSP/Servlet hosting? Arne Vajhøj <arne@vajhoej.dk> - 2016-12-31 19:40 -0500
              Re: Inexpensive JSP/Servlet hosting? Nigel Wade <nmw@local.domain> - 2017-01-03 10:36 +0000
          Re: Inexpensive JSP/Servlet hosting? Arne Vajhøj <arne@vajhoej.dk> - 2016-12-29 19:40 -0500
            Re: Inexpensive JSP/Servlet hosting? Arne Vajhøj <arne@vajhoej.dk> - 2016-12-29 21:21 -0500
          Re: Inexpensive JSP/Servlet hosting? galt_57@hotmail.com - 2016-12-29 10:52 -0800
    Re: Inexpensive JSP/Servlet hosting? Roedy Green <inquiry@mindprod.com> - 2017-01-05 21:49 -0800
    Re: Inexpensive JSP/Servlet hosting? matthew.townsend@gmail.com - 2017-01-13 14:24 -0800
      Re: Inexpensive JSP/Servlet hosting? Arne Vajhøj <arne@vajhoej.dk> - 2017-01-13 19:53 -0500

Page 1 of 2  [1] 2  Next page →


#36129 — Inexpensive JSP/Servlet hosting?

Fromgalt_57@hotmail.com
Date2016-12-27 19:45 -0800
SubjectInexpensive JSP/Servlet hosting?
Message-ID<7a283c8d-1038-4bcf-95d8-bf5e74ccf756@googlegroups.com>
What are the lowest cost known-functional hosting services where 
a student might build a small Java-based website? I see that I 
can get a cheap VPS but it only offers a small amount of ram.

Thanks

[toc] | [next] | [standalone]


#36130

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2016-12-28 12:26 +0000
Message-ID<o40b1v$l1p$1@dont-email.me>
In reply to#36129
On Tue, 27 Dec 2016 19:45:03 -0800, galt_57 wrote:

> What are the lowest cost known-functional hosting services where a
> student might build a small Java-based website? I see that I can get a
> cheap VPS but it only offers a small amount of ram.
> 
If you want to build a publically accessable website thats almost 
impossible to answer without knowing where in the world you are and, 
equally important, where you'd want to locate the website.

If it would be a private website for your own experimentation and 
possibly just for access within you own household, then cheapest way by 
far (assuming you already have an adequate PC[*] to run it on) is to set 
it up yourself on your own hardware. This would involve installing Linux, 
if you haven't already done so, and adding the Apache webserver, an up-to-
date Java JDK and Tomcat. All this software is well-tried FOSS and is 
known to work well together.
 
[*] If you don't have a suitable PC, consider buying a RaspberryPi model 
3 running their standard Raspbian Linux OS. These support Java as well as 
almost any other Linux package you can imagine.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#36131

FromEric Douglas <e.d.programmer@gmail.com>
Date2016-12-28 06:15 -0800
Message-ID<65e465ea-a439-4d70-8408-6b469acbf5ac@googlegroups.com>
In reply to#36130
On Wednesday, December 28, 2016 at 7:28:20 AM UTC-5, Martin Gregorie wrote:
> If it would be a private website for your own experimentation and 
> possibly just for access within you own household, then cheapest way by 
> far (assuming you already have an adequate PC[*] to run it on) is to set 
> it up yourself on your own hardware. This would involve installing Linux, 
> if you haven't already done so, and adding the Apache webserver, an up-to-
> date Java JDK and Tomcat. All this software is well-tried FOSS and is 
> known to work well together.
>  
> [*] If you don't have a suitable PC, consider buying a RaspberryPi model 
> 3 running their standard Raspbian Linux OS. These support Java as well as 
> almost any other Linux package you can imagine.
> 

I feel like I've asked this before but why are there so many things that sound like web server and which one(s) should we need?

https://httpd.apache.org/
http://tomcat.apache.org/
https://eclipse.org/jetty/
https://sourceforge.net/projects/wampserver/
http://apachegui.net/

Is there more on this?  I feel like I'm forgetting something.
or maybe the Java EE with GlassFish?  This says a lot about web
https://glassfish.java.net/getstarted.html
https://docs.oracle.com/javaee/7/firstcup/java-ee001.htm

[toc] | [prev] | [next] | [standalone]


#36137

FromArne Vajhøj <arne@vajhoej.dk>
Date2016-12-28 20:57 -0500
Message-ID<o41qit$k87$1@gioia.aioe.org>
In reply to#36131
On 12/28/2016 2:29 PM, Martin Gregorie wrote:
> On Wed, 28 Dec 2016 06:15:26 -0800, Eric Douglas wrote:
>> I feel like I've asked this before but why are there so many things that
>> sound like web server and which one(s) should we need?
>>
>> https://httpd.apache.org/
>>
> This (Apache) is probably the most widely used webserver, but there are
> others such as nginx. If you look around you can probably find one
> written in 100% Java, but why bother? Apache has had a battering over the
> years, so is stable, pretty much bugfree and reasonably secure. In
> addition its very well documented.
>
>> http://tomcat.apache.org/
> Tomcat isn't a webserver. It is/was referred to as an application server,
> IOW its a framework for executing Java web applications.

Often called "Java web container" or "Servlet container".

Note that Tomcat serves static content fine - it just don't have as many
bells and whistles as Apache httpd in this area.

>> https://eclipse.org/jetty/
>> https://sourceforge.net/projects/wampserver/
>> http://apachegui.net/
>>
> I've not seen any of them though I've heard of Jetty. Others can
> pontificate here.

WAMPServer is a bundle of Apache+PHP+MySQL for Windows.

I believe that Apache GUI is a GUI tool that can be used to
manage Apache httpd instead of editing httpd.conf.

Arne

[toc] | [prev] | [next] | [standalone]


#36143

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2016-12-29 12:30 +0000
Message-ID<o42vlu$das$1@dont-email.me>
In reply to#36137
On Wed, 28 Dec 2016 20:57:48 -0500, Arne Vajhøj wrote:

> I believe that Apache GUI is a GUI tool that can be used to manage
> Apache httpd instead of editing httpd.conf.
>
I just looked it up in the course of revising one of my reference pages: 
its actually a web tool for managing the Apache HTTP server.
 


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#36144

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2016-12-28 19:29 +0000
Message-ID<o413rn$711$1@dont-email.me>
In reply to#36131
On Wed, 28 Dec 2016 06:15:26 -0800, Eric Douglas wrote:

> On Wednesday, December 28, 2016 at 7:28:20 AM UTC-5, Martin Gregorie
> wrote:
>> If it would be a private website for your own experimentation and
>> possibly just for access within you own household, then cheapest way by
>> far (assuming you already have an adequate PC[*] to run it on) is to
>> set it up yourself on your own hardware. This would involve installing
>> Linux, if you haven't already done so, and adding the Apache webserver,
>> an up-to-
>> date Java JDK and Tomcat. All this software is well-tried FOSS and is
>> known to work well together.
>>  
>> [*] If you don't have a suitable PC, consider buying a RaspberryPi
>> model 3 running their standard Raspbian Linux OS. These support Java as
>> well as almost any other Linux package you can imagine.
>> 
>> 
> I feel like I've asked this before but why are there so many things that
> sound like web server and which one(s) should we need?
> 
> https://httpd.apache.org/
>
This (Apache) is probably the most widely used webserver, but there are 
others such as nginx. If you look around you can probably find one 
written in 100% Java, but why bother? Apache has had a battering over the 
years, so is stable, pretty much bugfree and reasonably secure. In 
addition its very well documented.

> http://tomcat.apache.org/
Tomcat isn't a webserver. It is/was referred to as an application server, 
IOW its a framework for executing Java web applications. 
  
> https://eclipse.org/jetty/
> https://sourceforge.net/projects/wampserver/
> http://apachegui.net/
> 
I've not seen any of them though I've heard of Jetty. Others can 
pontificate here.

Personally, I've been using Apache for well over 10 years, helped on with 
a small amount of PHP. Another advantage is that Apache is available on a 
large number of webhosts, which suits me: My private copy of it is used 
to support my internal, LAN-only web service and for developing pages for 
publication on my public websites. When I'm happy with new or modified 
pages, publishing them is as simple as using FTP to copy them onto the 
relevant public website.
 
One more essential tool for the web developing neophyte - HTML Tidy.

This parses web pages and reports invalid syntax, etc by line number. At 
some time we all need to hand craft HTML pages or fragments or would like 
to check that HTML generated by our new application is correct. HTML Tidy 
is the obvious tool in both cases.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#36133

FromDavej <galt_57@hotmail.com>
Date2016-12-28 09:15 -0800
Message-ID<bccc8cda-bbb7-4dbf-9bef-29b67f1b74ef@googlegroups.com>
In reply to#36130
On Wednesday, December 28, 2016 at 6:28:20 AM UTC-6, Martin Gregorie wrote:
> On Tue, 27 Dec 2016 19:45:03 -0800, Davej wrote:
> 
> > What are the lowest cost known-functional hosting services where a
> > student might build a small Java-based website? I see that I can 
> > get a cheap VPS but it only offers a small amount of ram.
> > 
> If you want to build a publically accessable website thats almost 
> impossible to answer without knowing where in the world you are and, 
> equally important, where you'd want to locate the website....
> [...]
> 
> -- 
> martin@   | Martin Gregorie
> gregorie. | Essex, UK
> org       |


Sorry, I realize that the selection of a specific hosting provider 
is dependent on desired location -- but I would hope the generic 
technical specifications needed to run Tomcat would be universal.

For example, what minimum amount of RAM is required to run CentOS7 
and Tomcat?

https://www.rshosting.com/cheap-vps-servers/ 
https://www.interserver.net/vps/ 
https://www.a2hosting.com/tomcat-hosting 

[toc] | [prev] | [next] | [standalone]


#36136

FromArne Vajhøj <arne@vajhoej.dk>
Date2016-12-28 20:52 -0500
Message-ID<o41q9o$k1a$1@gioia.aioe.org>
In reply to#36133
On 12/28/2016 12:15 PM, Davej wrote:
> Sorry, I realize that the selection of a specific hosting provider
> is dependent on desired location -- but I would hope the generic
> technical specifications needed to run Tomcat would be universal.
>
> For example, what minimum amount of RAM is required to run CentOS7
> and Tomcat?

The absolute minimum must be very small.

I will suggest 4+ GB RAM and Java heap 1.5+ GB as minimum
to get good performance.

Arne

[toc] | [prev] | [next] | [standalone]


#36138

FromJerry Stuckle <jstucklex@attglobal.net>
Date2016-12-28 16:36 -0500
Message-ID<o41b5u$77t$1@jstuckle.eternal-september.org>
In reply to#36133
On 12/28/2016 4:18 PM, Martin Gregorie wrote:
> On Wed, 28 Dec 2016 12:30:14 -0800, galt_57 wrote:
> 
>> On Wednesday, December 28, 2016 at 1:54:10 PM UTC-6, Martin Gregorie
>> wrote:
>>> On Wed, 28 Dec 2016 09:15:53 -0800, Davej wrote:
>>>>
>>>> For example, what minimum amount of RAM is required to run CentOS7
>>>> and Tomcat?
>>>>
>>> Can't help with Tomcat, but my house server runs Fedora 23[*] on a
>>> fairly ancient 4GB Dual Athlon box...
>>
>>
>> I'm not sure what Eric's question is, but my question is how to host
>> Java JSP/Servlet websites -- not Php websites.
>>
> So why stick you nose in? 
>

Maybe he "stuck his nose in" because it's HIS question.  Why did you
stick your nose in with an off-topic answer.

> In any case, most of the public webhosts won't like you using them as a 
> self-teaching/development site because that could impact performance for 
> their other clients, so you really need a local development system: what 
> are you planning to use?
>

I disagree here.  Web hosting companies don't care if you are using them
as a self-teaching/development site.  These sites are typically low
overhead and low traffic - money in the hosting company's pocket.

But I do agree one needs a local development environment, also.  One
should always test locally before uploading to the server.

> FYI Centos is a free version of RHEL - and Fedora is the short term/
> development version of both, so all he needs to do it to reduce my number 
> by the memory needed by any of the major servers I use but he doesn't and 
> add on Tomcat requirements
> 

There are a number of distros available which can suit his needs.  But
that also requires a fair amount of time and expertise to set up and
maintain properly - especially if it's public-facing and/or has multiple
users.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#36142

FromEric Douglas <e.d.programmer@gmail.com>
Date2016-12-28 13:52 -0800
Message-ID<e68eafc6-91eb-4639-9209-00d34bc35455@googlegroups.com>
In reply to#36138
On Wednesday, December 28, 2016 at 4:36:32 PM UTC-5, Jerry Stuckle wrote:
> I disagree here.  Web hosting companies don't care if you are using them
> as a self-teaching/development site.  These sites are typically low
> overhead and low traffic - money in the hosting company's pocket.
> 
Yeah I wouldn't think there's any downside to a web service company ie Media Temple hosting a web site for someone just trying to learn web development.  The downside for the developer is unless it's a real short term thing, or the site is somehow making money, it'll end up costing.

> But I do agree one needs a local development environment, also.  One
> should always test locally before uploading to the server.
> 
That seems obvious to me, though we did recently see web developers trying to change code directly on a live site.

> > FYI Centos is a free version of RHEL - and Fedora is the short term/
> > development version of both, so all he needs to do it to reduce my number 
> > by the memory needed by any of the major servers I use but he doesn't and 
> > add on Tomcat requirements
> > 
> 
> There are a number of distros available which can suit his needs.  But
> that also requires a fair amount of time and expertise to set up and
> maintain properly - especially if it's public-facing and/or has multiple
> users.
> 
I did come across a site today that said use Fedora because it's made for web server, though personally I'd set it up on Windows because I've worked with Windows for decades and I have no practical experience with Linux.

http://www.makeuseof.com/tag/set-apache-web-server-3-easy-steps/

Of course hosting it yourself is for testing it yourself, maybe setting up someone you know to connect to it.  If you host it yourself and open it to the public you'd have to deal with the public (DDOS?).

[toc] | [prev] | [next] | [standalone]


#36148

Fromgalt_57@hotmail.com
Date2016-12-29 10:43 -0800
Message-ID<16a3706e-f220-4b65-87a7-51b09dc4471a@googlegroups.com>
In reply to#36142
On Wednesday, December 28, 2016 at 5:52:12 PM UTC-6, Martin Gregorie wrote:
>  ...if you're setting up a personal teaching and 
> development environment for just yourself, the cheapest and most
> hassle-free approach may be to invest on a RaspberryPi running
> Raspbian. Total cost is under $US 35 for a Pi 3. All the software
> you'd need is either a Raspbian package (and so free) or a free
> download off the 'net. 


That might be good for a development website on a private home 
network -- but it is far more interesting to have a public website 
that can be usefully accessed from anywhere. I can test a website 
locally right from NetBeans (with Tomcat or Glassfish) although a
Raspberry-Pi would offer more realistic testing.

(I have a Raspberry-Pi sitting here doing nothing.)

[toc] | [prev] | [next] | [standalone]


#36149

FromArne Vajhøj <arne@vajhoej.dk>
Date2016-12-29 19:32 -0500
Message-ID<o449vm$bol$1@gioia.aioe.org>
In reply to#36148
On 12/29/2016 3:37 PM, Martin Gregorie wrote:
> A related point is that, IIRC (and I'm sure others can correct me if my
> recollection is wrong) the way to update a Tomcat-based web application
> is to upload a WAR file to Tomcat.
>
> Again, IIRC the WAR file contains, among other things static pages, Java
> Beans and, presumably, related classes, i.o.w. its not unlike a jar file.

It is a jar file with some additional conventions.

> The Java classes and beans in it must have been compiled somewhere and it
> seems likely that 'somewhere' would not be part of the web hosting
> environment containing the Tomcat Instance you'd be using to support your
> experimental website. In which case you'd still need a local(?)
> development system to prepare the WAR file.
>
> What did I miss?

Nothing I think.

But the development system only needs JDK plus a few jars
with some API's to produce the war. You do not need an
actual running servlet container.

Arne

[toc] | [prev] | [next] | [standalone]


#36155

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2016-12-30 12:24 +0000
Message-ID<o45jlj$6vs$1@dont-email.me>
In reply to#36149
On Thu, 29 Dec 2016 19:32:53 -0500, Arne Vajhøj wrote:

> But the development system only needs JDK plus a few jars with some
> API's to produce the war. You do not need an actual running servlet
> container.
>
It doesn't surprise me that you don't need a running servlet container in 
the development environment, but presumably it would speed up development 
if there is one available, simply because it would catch some classes of 
mistakes that wouldn't otherwise be spotted until the WAR is deployed.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#36156

FromArne Vajhøj <arne@vajhoej.dk>
Date2016-12-30 20:39 -0500
Message-ID<o4727r$12d7$1@gioia.aioe.org>
In reply to#36155
On 12/30/2016 7:24 AM, Martin Gregorie wrote:
> On Thu, 29 Dec 2016 19:32:53 -0500, Arne Vajhøj wrote:
>
>> But the development system only needs JDK plus a few jars with some
>> API's to produce the war. You do not need an actual running servlet
>> container.
>>
> It doesn't surprise me that you don't need a running servlet container in
> the development environment, but presumably it would speed up development
> if there is one available, simply because it would catch some classes of
> mistakes that wouldn't otherwise be spotted until the WAR is deployed.

True. Some local testing could be a very good thing.

Arne

[toc] | [prev] | [next] | [standalone]


#36154

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2016-12-29 20:37 +0000
Message-ID<o43s5d$qj1$1@dont-email.me>
In reply to#36148
On Thu, 29 Dec 2016 10:43:31 -0800, galt_57 wrote:

> On Wednesday, December 28, 2016 at 5:52:12 PM UTC-6, Martin Gregorie
> wrote:
>>  ...if you're setting up a personal teaching and
>> development environment for just yourself, the cheapest and most
>> hassle-free approach may be to invest on a RaspberryPi running
>> Raspbian. Total cost is under $US 35 for a Pi 3. All the software you'd
>> need is either a Raspbian package (and so free) or a free download off
>> the 'net.
> 
> 
> That might be good for a development website on a private home network
> -- but it is far more interesting to have a public website that can be
> usefully accessed from anywhere. I can test a website locally right from
> NetBeans (with Tomcat or Glassfish) although a Raspberry-Pi would offer
> more realistic testing.
> 
A related point is that, IIRC (and I'm sure others can correct me if my 
recollection is wrong) the way to update a Tomcat-based web application 
is to upload a WAR file to Tomcat. 

Again, IIRC the WAR file contains, among other things static pages, Java 
Beans and, presumably, related classes, i.o.w. its not unlike a jar file. 
The Java classes and beans in it must have been compiled somewhere and it 
seems likely that 'somewhere' would not be part of the web hosting 
environment containing the Tomcat Instance you'd be using to support your 
experimental website. In which case you'd still need a local(?) 
development system to prepare the WAR file. 

What did I miss?

> (I have a Raspberry-Pi sitting here doing nothing.)
>
Fire it up and see what it can do. I see that Java is supported by recent 
Raspbian versions, but if your RPi is as old as mine (an RPi B+) then 
yours probably doesn't have Java installed, so you'd need to do that. Its 
almost certainly Open Java, which in included as a Debian package, so no 
need to download it from Oracle.

You may find compilations are quite slow on an RPi B+ because they only 
have .5GB RAM and a single core MPU clocked at 0.7 GHz. I certainly find 
mine noticeably slow when compiling decently sized chunks of C. This is 
the main reason I suggested that getting an RPi 3 might be money well 
spent because having 1GB RAM, quad cores and a 1.2 GHz clock is going to 
make quite a speed difference.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#36152

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2016-12-28 23:50 +0000
Message-ID<o41j49$vu6$1@dont-email.me>
In reply to#36142
On Wed, 28 Dec 2016 13:52:15 -0800, Eric Douglas wrote:

> I did come across a site today that said use Fedora because it's made
> for web server, though personally I'd set it up on Windows because I've
> worked with Windows for decades and I have no practical experience with
> Linux.
>
Fair comment, though if you're setting up a personal teaching and 
development environment for just yourself, the cheapest and most hassle-
free approach may be to invest on a RaspberryPi running Raspbian. Total 
cost is under $US 35 for a Pi 3. All the software you'd need is either a 
Raspbian package (and so free) or a free download off the 'net. 
Additional items needed are:

- an SD card. 8GB is fine but more than 16GB would be overkill.

- a case. Buy one or DIY - mine lives in an octagonal plastic box
  that used to hold Mirabell Mozartkugeln.

- cabling etc. including a 2.1A USB mains adapter

- Run it headless from a PC on the same LAN and you don't need any
  additional keyboard,mouse or screen. Or, of course, you'll need to add a
  keyboard, mouse and screen.

> Of course hosting it yourself is for testing it yourself, maybe setting
> up someone you know to connect to it.  If you host it yourself and open
> it to the public you'd have to deal with the public (DDOS?).
>
Quite. A good, correctly configured and tested firewall is an essential 
minimum if you don't want to be pwned or find yourself hosting part of a 
botnet.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#36140

FromEric Douglas <e.d.programmer@gmail.com>
Date2016-12-28 13:39 -0800
Message-ID<29dcad09-1844-4a67-99f5-5055c31b441b@googlegroups.com>
In reply to#36133
On Wednesday, December 28, 2016 at 4:20:23 PM UTC-5, Martin Gregorie wrote:
> In any case, most of the public webhosts won't like you using them as a 
> self-teaching/development site because that could impact performance for 
> their other clients, so you really need a local development system: what 
> are you planning to use?
> 
> FYI Centos is a free version of RHEL - and Fedora is the short term/
> development version of both, so all he needs to do it to reduce my number 
> by the memory needed by any of the major servers I use but he doesn't and 
> add on Tomcat requirements
> 

Agreed, if you're just trying to teach yourself web, not needing people outside your home/office to connect to it, host it on your own machine.
Our web developers are using the wamp server to host local copies.
Java-based?  What exactly needs to be Java about it?  You can write a front end and/or back end Java program that sends http commands to a non-Java web server.

[toc] | [prev] | [next] | [standalone]


#36141

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2016-12-28 21:18 +0000
Message-ID<o41a7c$1d8$1@dont-email.me>
In reply to#36133
On Wed, 28 Dec 2016 12:30:14 -0800, galt_57 wrote:

> On Wednesday, December 28, 2016 at 1:54:10 PM UTC-6, Martin Gregorie
> wrote:
>> On Wed, 28 Dec 2016 09:15:53 -0800, Davej wrote:
>> >
>> > For example, what minimum amount of RAM is required to run CentOS7
>> > and Tomcat?
>> > 
>> Can't help with Tomcat, but my house server runs Fedora 23[*] on a
>> fairly ancient 4GB Dual Athlon box...
> 
> 
> I'm not sure what Eric's question is, but my question is how to host
> Java JSP/Servlet websites -- not Php websites.
>
So why stick you nose in? 

In any case, most of the public webhosts won't like you using them as a 
self-teaching/development site because that could impact performance for 
their other clients, so you really need a local development system: what 
are you planning to use?

FYI Centos is a free version of RHEL - and Fedora is the short term/
development version of both, so all he needs to do it to reduce my number 
by the memory needed by any of the major servers I use but he doesn't and 
add on Tomcat requirements



-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#36145

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2016-12-28 19:52 +0000
Message-ID<o41561$711$2@dont-email.me>
In reply to#36133
On Wed, 28 Dec 2016 09:15:53 -0800, Davej wrote:

> Sorry, I realize that the selection of a specific hosting provider is
> dependent on desired location -- but I would hope the generic technical
> specifications needed to run Tomcat would be universal.
>
You might be surprised. Neither of the webhosting providers I've used 
over the last 15 years have offered any of the common Java application 
servers, let alone Tomcat, but both support Apache (plus PHP etc).

> For example, what minimum amount of RAM is required to run CentOS7 and
> Tomcat?
> 
Can't help with Tomcat, but my house server runs Fedora 23[*] on a fairly 
ancient 4GB Dual Athlon box and is currently using 500MB of RAM including 
buffers etc to run Apache, PostGreSQL and Postfix along with their 
transient helpers and the usual smaller servers, such as Dovecot, sshd, 
and friends.

[*] my server is temporarily stuck there because kernel 4.7.10 is the 
last kernel I'm aware of that doesn't have a bug in kswapd0 that can 
crash large rsync backups. All version of kernel 4.8. that I've tried 
show this problem. It was reported some weeks back but apparently hasn't 
yet been resolved.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#36147

Fromgalt_57@hotmail.com
Date2016-12-28 12:30 -0800
Message-ID<41754abf-aa6e-443a-84b5-4c6431acdbad@googlegroups.com>
In reply to#36145
On Wednesday, December 28, 2016 at 1:54:10 PM UTC-6, Martin Gregorie wrote:
> On Wed, 28 Dec 2016 09:15:53 -0800, Davej wrote:
> >
> > For example, what minimum amount of RAM is required to run CentOS7 and
> > Tomcat?
> > 
> Can't help with Tomcat, but my house server runs Fedora 23[*] on a fairly 
> ancient 4GB Dual Athlon box...


I'm not sure what Eric's question is, but my question is how to host  
Java JSP/Servlet websites -- not Php websites.

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.java.programmer


csiph-web