|
View:
New views
12 Messages
—
Rating Filter:
Alert me
|
|
|
Apache Tomcat crashing...Hi
after running Apache Tomcat for a whole month without problems, it crashes now too often (after approx. 2 days). The error I get: "java.lang.OutOfMemoryError: requested 140 bytes for CHeapObj-new. Out of swap space?" My JVM
options:
export MALLOC_CHECK_=0 JAVA_OPTS="-Djava.awt.headless=true" JAVA_OPTS="$JAVA_OPTS -server " JAVA_OPTS="$JAVA_OPTS -XX:SoftRefLRUPolicyMSPerMB=36000 " JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx768m " JAVA_OPTS="$JAVA_OPTS -XX:PermSize=128m " JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=256m " Is there a way to find out
which process makes Tomcat crashing? (I have two other servlets running in
Tomcat) And how to avoid crashing Tomcat this often? [GeoServer 1.6.4b, Apache
Tomcat 5.5.25 on a Red Hat Enterprise Linux ES release 4 (Nahant Update
6)]
regards
Stefan Mit freundlichem
Gruss
Stefan Ziegler Leiter Aufsicht Kanton
Solothurn
Bau- und Justizdepartement Amt für Geoinformation Rötistrasse 4 4501 Solothurn Telefon 032 627 75 96 Telefax 032 627 75 98 stefan.ziegler@... http://www.so.ch ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geoserver-users mailing list Geoserver-users@... https://lists.sourceforge.net/lists/listinfo/geoserver-users |
|
|
Re: Apache Tomcat crashing...I don't have a clear answer, but you may be able to peak into the
process by running visualvm: https://visualvm.dev.java.net/ We have several GeoServer instances that have been up for extended periods of time, so I'd be surprised if there are major memory leaks in the WMS / Shapefile / Postgis context. Other relevant questions 1) What version of Java are you running? 2) How much physical memory does the machine actually have? Try setting both Xms and Xmx to 512 3) Alternatively, move GeoServer to it's own application server (can be on the same machine), see what eats memory. -Arne Ziegler Stefan wrote: > Hi > after running Apache Tomcat for a whole month without problems, it > crashes now too often (after approx. 2 days). The error I get: > "java.lang.OutOfMemoryError: requested 140 bytes for CHeapObj-new. Out > of swap space?" > > My JVM options: > export MALLOC_CHECK_=0 > JAVA_OPTS="-Djava.awt.headless=true" > JAVA_OPTS="$JAVA_OPTS -server " > JAVA_OPTS="$JAVA_OPTS -XX:SoftRefLRUPolicyMSPerMB=36000 " > JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx768m " > JAVA_OPTS="$JAVA_OPTS -XX:PermSize=128m " > JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=256m " > > Is there a way to find out which process makes Tomcat crashing? (I > have two other servlets running in Tomcat) And how to avoid crashing > Tomcat this often? [GeoServer 1.6.4b, Apache Tomcat 5.5.25 on a Red > Hat Enterprise Linux ES release 4 (Nahant Update 6)] > > regards > Stefan > > Mit freundlichem Gruss > Stefan Ziegler > Leiter Aufsicht > > Kanton Solothurn > Bau- und Justizdepartement > Amt für Geoinformation > Rötistrasse 4 > 4501 Solothurn > Telefon 032 627 75 96 > Telefax 032 627 75 98 > stefan.ziegler@... > http://www.so.ch > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Geoserver-users mailing list > Geoserver-users@... > https://lists.sourceforge.net/lists/listinfo/geoserver-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geoserver-users mailing list Geoserver-users@... https://lists.sourceforge.net/lists/listinfo/geoserver-users |
|
|
|
|
|
Re: Apache Tomcat crashing...Hi Stefan,
I found this: The next improvement is visible when the system is almost out of swap space and an allocation from the native heap fails in the VM. In that case the VM aborts and you get a one-line error such as the following: Exception java.lang.OutOfMemoryError: requested 16 bytes for CHeapObj-new. Out of swap space? This message has been known to confuse a lot of developers. At first glance it might it might look like that the java heap is full. Of course if you increase the size of the heap with the -mx option it might make the problem worse as the larger java heap means there is less native memory available. from: http://blogs.sun.com/alanb/entry/outofmemoryerror_looks_a_bit_better I don't know whether it will help but maybe you can give it a try. Could there really be problems with the swap space? You'd better check it. - mika - Ziegler Stefan kirjoitti: > Hi > after running Apache Tomcat for a whole month without problems, it > crashes now too often (after approx. 2 days). The error I get: > "java.lang.OutOfMemoryError: requested 140 bytes for CHeapObj-new. Out > of swap space?" > > My JVM options: > export MALLOC_CHECK_=0 > JAVA_OPTS="-Djava.awt.headless=true" > JAVA_OPTS="$JAVA_OPTS -server " > JAVA_OPTS="$JAVA_OPTS -XX:SoftRefLRUPolicyMSPerMB=36000 " > JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx768m " > JAVA_OPTS="$JAVA_OPTS -XX:PermSize=128m " > JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=256m " > > Is there a way to find out which process makes Tomcat crashing? (I > have two other servlets running in Tomcat) And how to avoid crashing > Tomcat this often? [GeoServer 1.6.4b, Apache Tomcat 5.5.25 on a Red > Hat Enterprise Linux ES release 4 (Nahant Update 6)] > > regards > Stefan > > Mit freundlichem Gruss > Stefan Ziegler > Leiter Aufsicht > > Kanton Solothurn > Bau- und Justizdepartement > Amt für Geoinformation > Rötistrasse 4 > 4501 Solothurn > Telefon 032 627 75 96 > Telefax 032 627 75 98 > stefan.ziegler@... > http://www.so.ch > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Geoserver-users mailing list > Geoserver-users@... > https://lists.sourceforge.net/lists/listinfo/geoserver-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geoserver-users mailing list Geoserver-users@... https://lists.sourceforge.net/lists/listinfo/geoserver-users |
|
|
|
|
|
Re: Apache Tomcat crashing...Yeah, our setup is pretty similar, except I use Tomcat 6.x, so that
sounds good. Java 6 lets you use tools like visualvm remotely, so that simplifies things a bit. I would probably increase Xms and Xmx to at least 1024 Mb (unless you really need it for other applications). Rendering big WMS images with 32 bit color depth is not cheap, but people run GeoServer with much less. -Arne Ziegler Stefan wrote: > > 1) What version of Java are you running? > vm_info: Java HotSpot(TM) Server VM (1.6.0_03-b05) for linux-x86, > built on Sep 24 2007 22:32:39 by "java_re" with gcc 3.2.1-7a (J2SE > release) > > > 2) How much physical memory does the machine actually have? > 8 gigs > > > Try setting > > both Xms and Xmx to 512 > Done. > > > 3) Alternatively, move GeoServer to it's own application > > server (can be > > on the same machine), see what eats memory. > Will discuss it with the admin... > > Thanks so far! > Stefan > > > > > -Arne > > > > Ziegler Stefan wrote: > > > Hi > > > after running Apache Tomcat for a whole month without problems, it > > > crashes now too often (after approx. 2 days). The error I get: > > > "java.lang.OutOfMemoryError: requested 140 bytes for > > CHeapObj-new. Out > > > of swap space?" > > > > > > My JVM options: > > > export MALLOC_CHECK_=0 > > > JAVA_OPTS="-Djava.awt.headless=true" > > > JAVA_OPTS="$JAVA_OPTS -server " > > > JAVA_OPTS="$JAVA_OPTS -XX:SoftRefLRUPolicyMSPerMB=36000 " > > > JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx768m " > > > JAVA_OPTS="$JAVA_OPTS -XX:PermSize=128m " > > > JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=256m " > > > > > > > Is there a way to find out which process makes Tomcat crashing? (I > > > have two other servlets running in Tomcat) And how to avoid > > crashing > > > Tomcat this often? [GeoServer 1.6.4b, Apache Tomcat 5.5.25 on a Red > > > Hat Enterprise Linux ES release 4 (Nahant Update 6)] > > > > > > regards > > > Stefan > > > > > > Mit freundlichem Gruss > > > Stefan Ziegler > > > Leiter Aufsicht > > > > > > Kanton Solothurn > > > Bau- und Justizdepartement > > > Amt für Geoinformation > > > Rötistrasse 4 > > > 4501 Solothurn > > > Telefon 032 627 75 96 > > > Telefax 032 627 75 98 > > > stefan.ziegler@... > > > http://www.so.ch > > > > > -------------------------------------------------------------- > > ---------- > > > > > > > > -------------------------------------------------------------- > > ----------- > > > This SF.Net email is sponsored by the Moblin Your Move > > Developer's challenge > > > Build the coolest Linux based applications with Moblin SDK > > & win great prizes > > > Grand prize is a trip for two to an Open Source event > > anywhere in the world > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > > > -------------------------------------------------------------- > > ---------- > > > > > > _______________________________________________ > > > Geoserver-users mailing list > > > Geoserver-users@... > > > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > > > > > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geoserver-users mailing list Geoserver-users@... https://lists.sourceforge.net/lists/listinfo/geoserver-users |
|
|
Re: Apache Tomcat crashing...Ziegler Stefan ha scritto:
> Swap space looks like this: > total used free shared buffers cached > Mem: 8306064 6183208 2122856 0 60492 5620972 > -/+ buffers/cache: 501744 7804320 > Swap: 4096532 656 4095876 > > Thanks for the link. The "Troubleshooting and Diagnostic Guide" seems to > be full of information but it's getting a little bit late for this > hardcore java action (and a new episode of "Californication" will be > aired in half an hour ;)). Looking at the page Jukka linked I see this: "In Mustang this condition will trigger the VM to invoke the fatal error handling mechanism. This means you should get a fatal error log as you would get with a normal (abnormal?) crash. The fatal error log is named hs_err_<pid>.log and contains useful information about the thread, process, and system at the time of the crash. In the case of native heap exhaustion then the heap memory and memory map information in the log can be useful. The exact format is version and platform specific and you will get more information in the J2SE Troubleshooting Guide." Mumble, can we see the contents of that hs_err_<pid>.log file? Cheers Andrea ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geoserver-users mailing list Geoserver-users@... https://lists.sourceforge.net/lists/listinfo/geoserver-users |
|
|
|
|
|
|
|
|
|
|
|
Re: Apache Tomcat crashing...Ziegler Stefan ha scritto:
> A short update: I think I was able to reproduce the crash. It happened > after trying to reproject the data from the native srs to epgs:4326. The > requested wms layer is cascaded in MapServer with aerial photographs (to > obtain a google like appearance). It does not seem to crash with > requests in the native srs. There are probably two things at work here. The first is a solid bug in the Sun JVM, if the shape is problematic, it should report an error, not crash like this. Trying to upgrade the JVM _might_ solve the issue. Besides this, maybe the shapefile renderer is being too aggressive in trying to simplify the geometry before rendering it. I've fixed a related issue recently (mid July), you might want to grab a nightly here: http://gridlock.openplans.org/geoserver/1.6.x/ and see if that fixes your issue. That release is quite close to being turned into 1.6.5. Cheers Andrea ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geoserver-users mailing list Geoserver-users@... https://lists.sourceforge.net/lists/listinfo/geoserver-users |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |