Did you check this site:
http://geoserver.org/display/GEOSDOC/2.6+GeoServer+in+Production+Environment
Look for the jvm options in the “configure your container for production” section.
regards
Stefan
-----Ursprüngliche Nachricht-----
Von: Bradley McLain [mailto:bradley_mclain@anonymised.com]
Gesendet am: Dienstag, 25. November 2008 05:12
An: Geoserver-Users
Betreff: [Geoserver-users] java.lang.OutOfMemoryError: Java heap space problems when displaying multiple layersWhat I am trying to do is display several layers using openlayers and geoserver. This includes 1 Google Map layer and 2 WMS layers as outlined in attached picture. Code was modified from provided example.
However when I try this and use the map for a little while I get “java.lang.OutOfMemoryError: Java heap space” errors on both the map and in the console which is running geoserver.
I tried this in both the 1.7.0 and latest-trunk builds and the problem occurs in both.
It appears to work fine when I remove my wms layer which has a custom style applied. The other layer simply uses the polygon layer which comes with geoserver.
Custom Style
<?xml version="1.0" encoding="ISO-8859-1"?> Default Line A boring default style A sample style that just prints out a green line Rule 1 Green Line A green line with a 2 pixel width #319738 2 Variety Times New Roman Normal 16 bold #FF0000This style works fine when i just open it using the map preview page.
Any help with this would be much appreciated.
Brad
–
Bradley Mclain
Systems Administrator Trainee
De Bortoli Wines Pty limited
De Bortoli Rd, BILBUL NSW 2680
e: bradley_mclain@anonymised.com