It's all about the answers!

Ask a question

Unable to start tomcat7 as a windows service for CLM 5.0.1 in Windows 2012


Panduka Siriwardena (1144) | asked Oct 28 '14, 8:02 p.m.
 Dear community,
CLM 5.0.1
DB2/tomcat7
I have installed CLM 5.0.1 in Windows 2012 R2 instance in Amazon Cloud, all went ok and work perfectly by manual start of Jazz Team Server(Start The Jazz Team Server).

So, setup the tomcat7 to start as windows service but failed. This setup done according to the instruction given on "Interactive installation guide"  and java options given as
-Dcatalina.home=C:\PROGRA~1\IBM\JazzTeamServer\server\tomcat
-Dcatalina.base=C:\PROGRA~1\IBM\JazzTeamServer\server\tomcat
-Djava.endorsed.dirs=C:\PROGRA~1\IBM\JazzTeamServer\server\tomcat\endorsed
-Djava.io.tmpdir=C:\PROGRA~1\IBM\JazzTeamServer\server\tomcat\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\PROGRA~1\IBM\JazzTeamServer\server\tomcat\conf\logging.properties
-DJAZZ_HOME=file:///C:/PROGRA~1/IBM/JazzTeamServer/server/conf
-Djava.awt.headless=true
-Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=true
-Dcom.ibm.team.repository.tempDir=C:\PROGRA~1\IBM\JazzTeamServer\server\tomcat\temp
-Djazz.connector.sslProtocol=SSL_TLS
-Djazz.connector.algorithm=IbmX509
-Dlog4j.configuration=file:///C:/PROGRA~1/IBM/JazzTeamServer/server/conf/startup_log4j.properties
-Xgcpolicy:gencon
-Xgc:preferredHeapBase=0x100000000
-XX:MaxDirectMemorySize=1G
-Xmx4G
-Xms4G
-Xmn512M

I cross checked this is with server.startup.bat and similar setup ???

in log files:
tomcat7-stderr.2014-10-28.log says,

2014-10-28 23:31:35 Commons Daemon procrun stderr initialized
JVMJ9GC019E -Xmn too large for -Xms
JVMJ9VM015W Initialization error for library j9gc24(2): Failed to initialize

commons-daemon.2014-10-28.log says,

[2014-10-28 23:31:35] [info]  [ 3764] Commons Daemon procrun (1.0.15.0 64-bit) started
[2014-10-28 23:31:35] [info]  [ 3764] Running 'tomcat7' Service...
[2014-10-28 23:31:35] [info]  [ 1868] Starting service...
[2014-10-28 23:31:35] [error] [ 2292] CreateJavaVM Failed
[2014-10-28 23:31:35] [error] [ 1868] Failed to start Java
[2014-10-28 23:31:35] [error] [ 1868] ServiceStart returned 4
[2014-10-28 23:31:35] [info]  [ 3764] Run service finished.
[2014-10-28 23:31:35] [info]  [ 3764] Commons Daemon procrun finished

Can somebody to help me on this please????

Thank you : Panduka

One answer



permanent link
Donald Nong (14.3k211) | answered Oct 28 '14, 8:56 p.m.
Run tomcat7w.exe and check the Java tab for details.
1. Make sure that you pick the right JRE - it's side by side with the "tomcat" folder.
2. Make sure that the two text boxes "initial memory pool" and "maximum memory pool" are empty since you already specify the -Xms and -Xmx in the Java Options text box.
You can see some screen shots in this post.
https://jazz.net/forum/questions/129395/rtc-404-tomcat7-windows-7-as-a-service-wont-start

Comments
Ralph Schoon commented Oct 29 '14, 4:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

From the error

JVMJ9GC019E -Xmn too large for -Xms


I would agree, that the settings in the service are not done properly.

Your answer


Register or to post your answer.