tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Walter.Heesterm...@toyota-europe.com
Subject RE: Tomcat 6 and Windows Service
Date Wed, 05 Jun 2013 12:43:57 GMT
Hi,,

I can set the following Java options 

-Djava.util.logging.config.file=c:\Idiom\WorldServer\WorldServer-web\conf\logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-verbose:gc
-Xloggc:\Idiom\WorldServer\WorldServer-web\logs\gc.log
-XX:+PrintGCDateStamps
-XX:+PrintGCTimeStamps
-XX:+PrintGCDetails
-XX:+PrintHeapAtGC
-XX:+PrintCommandLineFlags
-XX:+UseConcMarkSweepGC
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=c:\Idiom\WorldServer\WorldServer-web\heapdumps
-Djava.endorsed.dirs=c:\Idiom\apache-tomcat-6.0.37\endorsed
-Dcatalina.base=c:\Idiom\WorldServer\WorldServer-web
-Dcatalina.home=c:\Idiom\apache-tomcat-6.0.37
-Djava.io.tmpdir=c:\Idiom\WorldServer\WorldServer-web\temp
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=10150
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

and then start the service, I can use jmx via tools like VisualVM. Startup 
class is org.apache.catalina.startup.Bootstrap with argument start. All 
fine.

The stop  using shudown class is org.apache.catalina.startup.Bootstrap 
with argument stop, stays hanging because the java process to stop the 
service tries to connect port 10150; but this is already in used. Stop 
hangs...

Walter





From:   Walter Heestermans/IS/TME/BE/ToyotaEurope
To:     "Tomcat Users List" <users@tomcat.apache.org>, 
Date:   05/06/2013 14:18
Subject:        RE: Tomcat 6 and Windows Service


Not working neither, I think that Tomcat as a service is not using this

Walter





From:   Urkens Jean-Pierre <Jean-Pierre.Urkens@devoteam.com>
To:     Tomcat Users List <users@tomcat.apache.org>, 
Date:   05/06/2013 13:52
Subject:        RE: Tomcat 6 and Windows Service



Try creating a file $TOMCAT_HOME/bin/setenv.bat and include following line 
in it:

set "JAVA_OPTS=-Dcom.sun.management.jmxremote.port=10150 
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.authenticate=false"

-----Original Message-----
From: Walter.Heestermans@toyota-europe.com [
mailto:Walter.Heestermans@toyota-europe.com] 
Sent: Wednesday, June 05, 2013 1:35 PM
To: Tomcat Users List
Subject: Re: Tomcat 6 and Windows Service

Hi,

When I add the arguments to the startup arguments entry, and try to start 
the service

start
-Dcom.sun.management.jmxremote.port=10150
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

Then the following error is given

WARNING: Bootstrap: command
"-Dcom.sun.management.jmxremote.authenticate=false" does not exist.

Tried "conf/catalina.properties"

I just add the following to the file?

-Dcom.sun.management.jmxremote.port=10150
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

or

com.sun.management.jmxremote.port=10150
com.sun.management.jmxremote.ssl=false
com.sun.management.jmxremote.authenticate=false

Nothing seems to work...

Regards
Walter





From:   Konstantin Kolinko <knst.kolinko@gmail.com>
To:     Tomcat Users List <users@tomcat.apache.org>, 
Date:   03/06/2013 13:32
Subject:        Re: Tomcat 6 and Windows Service



2013/6/3 <Walter.Heestermans@toyota-europe.com>
>
> Hi,
>
> I'm running tomcat as Windows service.
>
> Now I like to add JMX support to the process:
>
> -Dcom.sun.management.jmxremote.port=10150
> -Dcom.sun.management.jmxremote.ssl=false
> -Dcom.sun.management.jmxremote.authenticate=false
>
> Configuring the service
>
>
>
> added the above options to the Java options. The start is then working
fine and JMX is working fine. But since I made this service the stop 
operation is not working anymore. When I run via console, then I see that 
the stop is complaining on port (used by JMX), already in use. This is 
propably the root cause of the stop not working. Is there a way to specify 
JVM arguments for only the start operation?


The service wrapper comes from Apache Commons Daemon project.
http://commons.apache.org/proper/commons-daemon/

You are better to ask there.

The things that I would try:
a) add those "-D,.." to "start arguments" setting. (The one that contains 
a single argument "start" by default).

Maybe it works, maybe not.

b) add those properties to conf/catalina.properties file

It would not work if JVM reads them at startup (before the Bootstrap class 
runs), but should work if it reads them at a later time.


Best regards,
Konstantin Kolinko

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



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



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message