cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

TomCat service stops unexpectedly

gchampoux
1-Newbie

TomCat service stops unexpectedly

3 times this week, TomCat (windows service) has stopped for no apparent reason.
It had been working fine for months until now.
The Windows event viewer has entries for the terminated service, but no details.
The TomCat logs do not show anything either.
The last entries prior to the stop do not indicate any problems.
After I restart the service, all is well... until it fails again in a day or 2.


Any suggestions as to what else to look for?


Windchill 9.1 M060 on Windows server 2003 x64.


Gerry

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks to all that responded!



Nearly everyone recommended bumping up various memory parameter settings.
I implimented some of them late last week, and so far TomCat is stayin' alive.
(with applogies to the Bee Gees)


I still do not know why TomCat was working fine for months, and then have this suddenly happen.
It was probably triggerred by our monthly OS patches. (Curse you Microsoft)


Thanks again!



Gerry


In Reply to Gerry Champoux:



3 times this week, TomCat (windows service) has stopped for no apparent reason.
It had been working fine for months until now.
The Windows event viewer has entries for the terminated service, but no details.
The TomCat logs do not show anything either.
The last entries prior to the stop do not indicate any problems.
After I restart the service, all is well... until it fails again in a day or 2.


Any suggestions as to what else to look for?


Windchill 9.1 M060 on Windows server 2003 x64.


View solution in original post

5 REPLIES 5

Gerry,

You might want to check a couple of things. I had a similar sometime ago.


1. Tomcat heapsize.

2. Patch updates to the window box.


Do you see any OutOfMemory exceptions?


Thanks

Alexius C. Chukwuka
IT Analyst, Global SAP Basis
Technical Change Management (TCM)
Deere & Company World Headquarters
400 19th St, Moline, IL 61265
Office: (309) 765-3133
Mobile: (319) 429-5336


Answers to common questions I have received so far:



  • Heapsize: Min = 256MB, Max=512MB.

  • Windows is at latest patches.

  • I have occasionally seen Windows low-memory warnings, where the virtual memory was automatically increased.

  • Server has 12 GB of RAM. Rarely reaches that limit, and never goes anywhere near the max limit with all virtual memory. (27GB)

  • Anti-virus is McAfee which is always running. Its' logs do not indicate anything.

Gerry

In Reply to Gerry Champoux:



3 times this week, TomCat (windows service) has stopped for no apparent reason.
It had been working fine for months until now.
The Windows event viewer has entries for the terminated service, but no details.
The TomCat logs do not show anything either.
The last entries prior to the stop do not indicate any problems.
After I restart the service, all is well... until it fails again in a day or 2.


Any suggestions as to what else to look for?


Windchill 9.1 M060 on Windows server 2003 x64.


Jerry,

Your tomcat heapsize seems a little low, but then again that might be ok if this box does not see that much traffic and if the logs does not register an out ofMemory excpetions.

A good test might be to up the heapsize a bit and see if it resolves the issue. You can always reset it if it doesn't.

Thanks

Alexius C. Chukwuka
IT Analyst, Global SAP Basis
Technical Change Management (TCM)
Deere & Company World Headquarters
400 19th St, Moline, IL 61265
Office: (309) 765-3133
Mobile: (319) 429-5336

Yea, we had thissimilar issue when doing a FlexPDM upgrade which is very tomcat intesive and doesn't use method servers much. The oracle temp tablespace would constantly hit the maximum too. The oracle temp tablespace has to adjusted with lots of free space. Check your oracle tables to make sure there is ample free space. Using oracle autoextend is not fast enough or reliable method of performance with Windchill to oracle.Instead of going to clusters of methodservers, I found out it was a version of Java that kept maxing out memory below the maximum heap. Once we updated the Java version, the process was allowed to allocate more memory and thus reduced the demand on CPU to process and build a backlog of threads. Youcan useappdynamics.com to give you better visual reports to narrow down your issue or just watch your memory and CPU on top in Unix. Its hard to watch memory and CPU performance on Windows using task manager. If you see the memoryand CPU maxed out, you should try to add more to the -Xmx like -Xmx2024 or -Xmx3968 in your wttomcat_start. A good idea is to use a minimum of -Xms768Mand just bump up the max memory. We use this in our $TOMCAT_HOME/bin/wttomcat_start:


# Adjust the following heap settings for Windchill
setenv JAVA_OPTS "-server -XX:PermSize=36M -XX:MaxPermSize=128M -Xms768M -Xmx2048M -Djava.awt.headless=true -Dwt.context.defaultLocalResourcesOnly=true"


For the version of Java, have a test server and you should always install $JAVA_HOME as a symbolic link or a folder shortcutas /usr/java/latest or C:\Program Files\Java\latest which points to the specific version you are using (i.e /usr/java/jdk1.6.0_29 or C:\Program Files\Java\jdk1.6.0_29). Then install your windchill applications pointing to that symbolic link/shortcut of java.


that way you can update Java without reseting all the paths in your install. So try a new version of java too. There is always memory fixes in Java.



Good luck.

Thanks to all that responded!



Nearly everyone recommended bumping up various memory parameter settings.
I implimented some of them late last week, and so far TomCat is stayin' alive.
(with applogies to the Bee Gees)


I still do not know why TomCat was working fine for months, and then have this suddenly happen.
It was probably triggerred by our monthly OS patches. (Curse you Microsoft)


Thanks again!



Gerry


In Reply to Gerry Champoux:



3 times this week, TomCat (windows service) has stopped for no apparent reason.
It had been working fine for months until now.
The Windows event viewer has entries for the terminated service, but no details.
The TomCat logs do not show anything either.
The last entries prior to the stop do not indicate any problems.
After I restart the service, all is well... until it fails again in a day or 2.


Any suggestions as to what else to look for?


Windchill 9.1 M060 on Windows server 2003 x64.


Top Tags