[Geoserver-users] Apache Tomcat crashing...

  1. What version of Java are you running?
    vm_info: Java HotSpot™ 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)
  1. How much physical memory does the machine actually have?
    8 gigs

Try setting
both Xms and Xmx to 512
Done.

  1. 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@anonymised.com
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

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@anonymised.com
> > 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@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
> >
>