[Geoserver-users] How feasible is it to run GeoServer in 512mb ram on linux?

I am looking at getting a cloud server to host a GeoServer for an app that I am writing. I don’t expect any real revenue to support the cost of server so it is out or pocket. I am use to having 2gb available so have never dealt with hardware this limited. This will be used primarily with an iPhone app but there will be an OpenLayers interface for viewing and an export functionality. This is a firefighter app for finding and adding water sources. The app is 95% written the ongoing cost is the thing holding it back atm.

The server would just be handling wfs and wms and only point data stored in a PostGIS on the same box. Is it possible to run under these conditions? I plan on setting up and running some JMeter tests to see how well it stands up, I just wanted to know if this is completely impractical. The pricing really jumps up quick with when you start adding ram.

Also would it lower or raise ram requirements if I used a SHP file instead of PostGIS?

Hi,

I hadn’t run GeoServer on any Linux box with less than 1 GByte.
It may run with less but you’re going to hit a lot of Out of Memory issues IMHO
Having PostGIS on the same machine will lower the memory available gor GeoServer. I don’t think on such a limited hardware you’re going to use huge amount of data, I would stick to shspefiles.

Cheers,

Stefano


41.95581N 12.52854E

http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas

Il giorno 08/mag/2013 03:14, “Walter Deane” <walter.deane@anonymised.com> ha scritto:

I am looking at getting a cloud server to host a GeoServer for an app that I am writing. I don’t expect any real revenue to support the cost of server so it is out or pocket. I am use to having 2gb available so have never dealt with hardware this limited. This will be used primarily with an iPhone app but there will be an OpenLayers interface for viewing and an export functionality. This is a firefighter app for finding and adding water sources. The app is 95% written the ongoing cost is the thing holding it back atm.

The server would just be handling wfs and wms and only point data stored in a PostGIS on the same box. Is it possible to run under these conditions? I plan on setting up and running some JMeter tests to see how well it stands up, I just wanted to know if this is completely impractical. The pricing really jumps up quick with when you start adding ram.

Also would it lower or raise ram requirements if I used a SHP file instead of PostGIS?


Learn Graph Databases - Download FREE O’Reilly Book
“Graph Databases” is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Wed, May 8, 2013 at 3:11 AM, Walter Deane <walter.deane@anonymised.com> wrote:

I am looking at getting a cloud server to host a GeoServer for an app that
I am writing. I don't expect any real revenue to support the cost of
server so it is out or pocket. I am use to having 2gb available so have
never dealt with hardware this limited. This will be used primarily with an
iPhone app but there will be an OpenLayers interface for viewing and an
export functionality. This is a firefighter app for finding and adding
water sources. The app is 95% written the ongoing cost is the thing holding
it back atm.

The server would just be handling wfs and wms and only point data stored
in a PostGIS on the same box. Is it possible to run under these conditions?
I plan on setting up and running some JMeter tests to see how well it
stands up, I just wanted to know if this is completely impractical. The
pricing really jumps up quick with when you start adding ram.

Hmm... it also depends on how much functionality you need.
For example, you could save some memory by stripping off the modules you
are not using, keeping in mind that WMS and WFS cannot
really be removed, you could get rid of gwc (delete all *gwc* jars), WCS
(all *wcs* jars), restconfig (*rest* jars), and you'd also do a good
service to your
memory needs by stripping away all user interface (all *web* jars),
provided you can edit the data dir with another GeoServer and
upload it to your server when it changes.

And then probably install control-flow so that the server does not take up
on too many WMS requests at a single time.

With that setup you _might_ be able to run it on 512MB.

Cheers
Andrea

--

GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Thanks for the advice. I was really hoping there was a super secret way to configure so that it would run in 512k that only a few people knew about. LOL. I am going to have to bite the bullet and charge a little for the app. Hopefully cost don’t go to high and I lose my shirt.

···

On Wed, May 8, 2013 at 3:35 PM, Stefano Iacovella <stefano.iacovella@anonymised.com84…> wrote:

Hi,

I hadn’t run GeoServer on any Linux box with less than 1 GByte.
It may run with less but you’re going to hit a lot of Out of Memory issues IMHO
Having PostGIS on the same machine will lower the memory available gor GeoServer. I don’t think on such a limited hardware you’re going to use huge amount of data, I would stick to shspefiles.

Cheers,

Stefano


41.95581N 12.52854E

http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas

Il giorno 08/mag/2013 03:14, “Walter Deane” <walter.deane@anonymised.com> ha scritto:

I am looking at getting a cloud server to host a GeoServer for an app that I am writing. I don’t expect any real revenue to support the cost of server so it is out or pocket. I am use to having 2gb available so have never dealt with hardware this limited. This will be used primarily with an iPhone app but there will be an OpenLayers interface for viewing and an export functionality. This is a firefighter app for finding and adding water sources. The app is 95% written the ongoing cost is the thing holding it back atm.

The server would just be handling wfs and wms and only point data stored in a PostGIS on the same box. Is it possible to run under these conditions? I plan on setting up and running some JMeter tests to see how well it stands up, I just wanted to know if this is completely impractical. The pricing really jumps up quick with when you start adding ram.

Also would it lower or raise ram requirements if I used a SHP file instead of PostGIS?


Learn Graph Databases - Download FREE O’Reilly Book
“Graph Databases” is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks for the advice. I am going to assume I really should be planning on 1gb of ram and trying to figure out how I am going to pay for it. I would like the app to be free but it looks like I am going to have to charge which means it probably won’t be used as much as I would like. Bummer.

I am a volunteer firefighter so I had big hopes for this app to be adopted by other firefighters.

Thanks again, for the advice,

Walter Deane

···

On Wed, May 8, 2013 at 6:01 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Wed, May 8, 2013 at 3:11 AM, Walter Deane <walter.deane@anonymised.com> wrote:

I am looking at getting a cloud server to host a GeoServer for an app that I am writing. I don’t expect any real revenue to support the cost of server so it is out or pocket. I am use to having 2gb available so have never dealt with hardware this limited. This will be used primarily with an iPhone app but there will be an OpenLayers interface for viewing and an export functionality. This is a firefighter app for finding and adding water sources. The app is 95% written the ongoing cost is the thing holding it back atm.

The server would just be handling wfs and wms and only point data stored in a PostGIS on the same box. Is it possible to run under these conditions? I plan on setting up and running some JMeter tests to see how well it stands up, I just wanted to know if this is completely impractical. The pricing really jumps up quick with when you start adding ram.

Hmm… it also depends on how much functionality you need.
For example, you could save some memory by stripping off the modules you are not using, keeping in mind that WMS and WFS cannot
really be removed, you could get rid of gwc (delete all gwc jars), WCS (all wcs jars), restconfig (rest jars), and you’d also do a good service to your
memory needs by stripping away all user interface (all web jars), provided you can edit the data dir with another GeoServer and
upload it to your server when it changes.

And then probably install control-flow so that the server does not take up on too many WMS requests at a single time.

With that setup you might be able to run it on 512MB.

Cheers
Andrea

==
GeoServer training in Milan, 6th & 7th June 2013! Visit http://geoserver.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it