tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Mikusa <dmik...@gopivotal.com>
Subject Re: Web Service Client Response when Old Gen is 100%
Date Wed, 06 Nov 2013 14:21:52 GMT
On Nov 6, 2013, at 1:43 AM, Muhammad Ali Orakzai <m.orakzai@gmail.com> wrote:

> Hi,
> 
> I am using the following environment
> 
> Windows Server 2003 32 bit
> Apache Tomcat 7.0.27

Upgrade :)

You're 20 versions out-of-date.

> Netbeans IDE 7.2
> Metro 2.0
> 
> We have created a SOAP based web service which is calling 2 external SOAP
> services. We were getting OutOfMemoryError which was resloved by making the
> service object static. Now whenever the server memory reaches 100% one of
> the external service response is too slow (takes about 2-3 minutes).

Sounds like a GC issue.  I see you have GC logging enabled, what do you see in "E:\topupfix\GC.log"?
 Are you in the midst of a full gc?

Also, while the response is hanging (i.e. during the 2-3 minute window) take some thread dumps
(two or three is sufficient).  Check them to see what is happening in the application during
that time period.

Dan

> Restarting tomcat resolves the issue but this issue is occurring 25-26
> hours interval.
> 
> I am using the following jvm settings
> 
> -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat
> 7.0_Tomcat7Installer
> -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat
> 7.0_Tomcat7Installer
> -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat
> 7.0_Tomcat7Installer\endorsed
> -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat
> 7.0_Tomcat7Installer\temp
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> -Djava.util.logging.config.file=C:\Program Files\Apache Software
> Foundation\Tomcat 7.0_Tomcat7Installer\conf\logging.properties
> -XX:MaxPermSize=100m
> -XX:+UseConcMarkSweepGC
> -XX:+CMSClassUnloadingEnabled
> -XX:+HeapDumpOnOutOfMemoryError
> -XX:HeapDumpPath=E:\topupfix\
> -Xloggc:E:\topupfix\GC.log
> -verbose:gc
> -XX:+PrintHeapAtGC
> -XX:+PrintGCDateStamps
> -XX:+PrintGCDetails
> -XX:+PrintGCTimeStamps
> -Dcom.sun.management.jmxremote
> -Dcom.sun.management.jmxremote.port=9004
> -Dcom.sun.management.jmxremote.ssl=false
> -Dcom.sun.management.jmxremote.authenticate=false


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message