Setup Tomcat as Windows Service
I setup the tomcat application as a windows service for the clm 4.0.6.
I followed the guidance of infocenter, and it's working.. but the server has a very poor performance.
I think it's that the it's the memory allocated for the jvm.
This is the configuration of the java options i used for the tomcat7 properties:
I tried setting more memory but when i do this, the service doesn't starts.
My server is a windows 2008 R2-64bits, and has 8GB RAM and i think I'm not using them at all.
Any advice will be very helpful,
Thanks.
I followed the guidance of infocenter, and it's working.. but the server has a very poor performance.
I think it's that the it's the memory allocated for the jvm.
This is the configuration of the java options i used for the tomcat7 properties:
-Dcatalina.base=D:\IBM\Rational\JazzTeamServer\server\tomcatAnd setup as Maximum memory pool 1024MB.
-Dcatalina.home=D:\IBM\Rational\JazzTeamServer\server\tomcat
-Djava.endorsed.dirs=D:\IBM\Rational\JazzTeamServer\server\tomcat\endorsed
-Djava.io.tmpdir=D:\IBM\Rational\JazzTeamServer\server\tomcat\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-DJAZZ_HOME=file:///D:/IBM/Rational/JazzTeamServer/server/conf
-Djava.awt.headless=true
-Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=true
-Dcom.ibm.team.repository.tempDir=D:\IBM\Rational\JazzTeamServer\server\tomcat\temp
-Djazz.connector.sslProtocol=SSL_TLS
-Djazz.connector.algorithm=IbmX509
-Dlog4j.configuration=file:///D:/IBM/Rational/JazzTeamServer/server/conf/startup_log4j.properties
-Xgcpolicy:gencon
-Djava.util.logging.config.file=D:\IBM\Rational\JazzTeamServer\server\tomcat\conf\logging.properties
I tried setting more memory but when i do this, the service doesn't starts.
My server is a windows 2008 R2-64bits, and has 8GB RAM and i think I'm not using them at all.
Any advice will be very helpful,
Thanks.
2 answers
Everything looks right. Have you thought about increasing the Maximum memory pool to 2048 Mb?
Comments
2 votes
showing 5 of 8
show 3 more comments
Hi Renato
Is the tomcat server starting normally using command line!
From the problem comments, I see not all parameters(garbage collector parameters missing) are defined in the Java options text field.
Since you have 8GB RAM and no other service running, you can work with 4G for the heap size.
Add the following lines at the end of the Java Options text field( change the values as per your Tomcat setup):
-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:\Program Files\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
Infocenter URL:
http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m6/index.jsp?topic=%2Fcom.ibm.jazz.install.doc%2Ftopics%2Ft_run_rqm64_win_service.html
Once configured, try restarting the service as an Administrator.
If this answers your question please mark it as accepted.
Is the tomcat server starting normally using command line!
From the problem comments, I see not all parameters(garbage collector parameters missing) are defined in the Java options text field.
Since you have 8GB RAM and no other service running, you can work with 4G for the heap size.
Add the following lines at the end of the Java Options text field( change the values as per your Tomcat setup):
-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:\Program Files\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
Infocenter URL:
http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m6/index.jsp?topic=%2Fcom.ibm.jazz.install.doc%2Ftopics%2Ft_run_rqm64_win_service.html
Once configured, try restarting the service as an Administrator.
If this answers your question please mark it as accepted.