Hi,
I'm hosting a WFS with the help of Geoserver. To find out the distribution
of feature instances, I'm running a program which makes lots of requests
for finding out number of feature instances within a bounding box (program
makes around 50-200 requests within 2-3 mins, depending on distribution of
data).
Sometimes while running my program, I'm getting
"java.lang.OutOfMemoryError: Java heap space" and geoserver stops working.
Kindly tell me how can I get rid of this error. Is this because of less
RAM on my machine (I've 1.2 gb RAM). How to increase heap space alloted to
geoserver?
Thanks,
Sanket Patle.
Sanket Chandulal Patle wrote:
Hi,
I'm hosting a WFS with the help of Geoserver. To find out the distribution
of feature instances, I'm running a program which makes lots of requests
for finding out number of feature instances within a bounding box (program
makes around 50-200 requests within 2-3 mins, depending on distribution of
data).
Sometimes while running my program, I'm getting
"java.lang.OutOfMemoryError: Java heap space" and geoserver stops working.
Kindly tell me how can I get rid of this error. Is this because of less
RAM on my machine (I've 1.2 gb RAM). How to increase heap space alloted to
geoserver?
Thanks,
Sanket Patle
Hi,
have a look at http://geoserver.org/display/GEOSDOC/2.6+GeoServer+in+Production+Environment
The second point in the "Configure your container for production" section, in particular.
-Arne
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers
Sanket Chandulal Patle ha scritto:
Hi,
I'm hosting a WFS with the help of Geoserver. To find out the distribution
of feature instances, I'm running a program which makes lots of requests
for finding out number of feature instances within a bounding box (program
makes around 50-200 requests within 2-3 mins, depending on distribution of
data).
Sometimes while running my program, I'm getting
"java.lang.OutOfMemoryError: Java heap space" and geoserver stops working.
This sounds like a memory leak. Which version of GeoServer are you running?
Kindly tell me how can I get rid of this error. Is this because of less
RAM on my machine (I've 1.2 gb RAM). How to increase heap space alloted to
geoserver?
It really depends on which version of GeoServer you installed. For example, on the Windows installer you have that "Start GeoServer"
menu entry, you have to modify the command it launches and
change "-Xmx300m" into something higher such as "-Xmx512m".
But if this is a memory leak you're seeing, it will only delay the
inevitable...
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.