[Geoserver-users] Tomcat & GWC = 100% CPU

Hello all there out,

we seeded some millions of tiles with gwc and set the expiration to -2. Now GWC seems to serve them well, but the CPU is running with 100% all the time. Does somebody know, what tomcat does with all this power? Is this the garbage collector? Can this be limited in some way? Can one help it to do its job in a better way? Should special settings being added?

Hope for any help

Greetings from Vienna

Wolfgang

It could be the metastore hungry of RAM. But I can't tell for sure.
Try disabling the metastore adding the following to your web.xml:
<context-param>
  <param-name>GWC_METASTORE_DISABLED</param-name>
  <param-value>true</param-value>
</context-param>

And how much heap memory are you running geoserver with? (like in for the -Xmx JVM parameter).
If running with defaults it's easy to get short of memory. If that's the case try -Xmx512m at least. And check if it's the metastore disabling it as explained above.

Gabriel

On Fri, 2011-02-04 at 18:38 +0100, Wolfgang Wasserburger wrote:

Hello all there out,

we seeded some millions of tiles with gwc and set the expiration to
-2. Now GWC seems to serve them well, but the CPU is running with 100%
all the time. Does somebody know, what tomcat does with all this
power? Is this the garbage collector? Can this be limited in some way?
Can one help it to do its job in a better way? Should special settings
being added?

Hope for any help

Greetings from Vienna

Wolfgang

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Gabriel Roldan
groldan@anonymised.com
Expert service straight from the developers

Gabriel,

thx for the advice how to disable metastore;

I'm running with Xmx3g

On the other hand it seemed to have problems with the ETags, which are switched off now and it seems to work, but we do not have heavy load in the moment.

CU Wolfgang

-----Original Message-----
From: Gabriel Roldan [mailto:groldan@anonymised.com] On Behalf Of Gabriel Roldán
Sent: Friday, February 04, 2011 9:32 PM
To: Wolfgang Wasserburger
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Tomcat & GWC = 100% CPU

It could be the metastore hungry of RAM. But I can't tell for sure.
Try disabling the metastore adding the following to your web.xml:
<context-param>
  <param-name>GWC_METASTORE_DISABLED</param-name>
  <param-value>true</param-value>
</context-param>

And how much heap memory are you running geoserver with? (like in for the -Xmx JVM parameter).
If running with defaults it's easy to get short of memory. If that's the case try -Xmx512m at least. And check if it's the metastore disabling it as explained above.

Gabriel

On Fri, 2011-02-04 at 18:38 +0100, Wolfgang Wasserburger wrote:

Hello all there out,

we seeded some millions of tiles with gwc and set the expiration to
-2. Now GWC seems to serve them well, but the CPU is running with 100%
all the time. Does somebody know, what tomcat does with all this
power? Is this the garbage collector? Can this be limited in some way?
Can one help it to do its job in a better way? Should special settings
being added?

Hope for any help

Greetings from Vienna

Wolfgang

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Gabriel Roldan
groldan@anonymised.com
Expert service straight from the developers