Francis, Steve (IHG) wrote: > There is only one resin instance on this box. The doc doesn't exactly > tell how to specify this, so I used the example. I've attached my conf > file, and here is how it's started. > > #! /bin/sh > java -Djava.library.path=/usr/local/resin/libexec64 > -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false > -Dcom.sun.management.jmxremote.authenticate=false -jar > /usr/local/resin/lib/resin.jar -conf /etc/resin/resin.xml -log-directory > /var/log/resin -root-directory /var/www start & > Those -D should be in the <jvm-arg> inside the resin.xml (in the <server> section for your machine), because the <jvm-arg> applies only to the Resin instance you're starting.
The problem here is that the startup programs (like the java -jar lib/resin.jar) use all -D arguments for all the children JVMs (including both the watchdog and Resin), which is a problem in this case because Java itself is reading them. So the boot JVM starts JMX, and the watchdog starts JMX and Resin starts JMX and they all are trying to listen to the same port which isn't working. If you put the -D in the <jvm-arg>, only the Resin instance itself will listen for JMX, and will avoid any conflicts. -- Scott > Thanks, > > > Steve Francis > Technical Advisor - zSeries, zLinux, z/OS > IHG > Alpharetta Data Center > Ph: 770-442-7157 > Cell: 770-906-3122 > IM: francisihg > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of > [email protected] > Sent: Tuesday, July 13, 2010 1:00 PM > To: [email protected] > Subject: resin-interest Digest, Vol 49, Issue 9 > > Send resin-interest mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://maillist.caucho.com/mailman/listinfo/resin-interest > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific than > "Re: Contents of resin-interest digest..." > > > Today's Topics: > > 1. JMX issue (Francis, Steve (IHG)) > 2. Re: JMX issue (Scott Ferguson) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 13 Jul 2010 11:20:57 -0400 > From: "Francis, Steve (IHG)" <[email protected]> > Subject: [Resin-interest] JMX issue > To: <[email protected]> > Message-ID: > > <c595e25cd30f3f4192918c5dfe51625901839...@hnatld1svrexg09.amer.corp.loca > l> > > Content-Type: text/plain; charset="us-ascii" > > It doesn't seem to matter what port I give this, it fails. I'll try > your 9999, but ....I'm not hopeful. Our monitoring folks wanted me to > us 681, which is what they have other Resin 3.x systems using, but it > failed just like 9681 did below. > Is there something else I'm missing? > > Error: Exception thrown by the agent : java.rmi.server.ExportException: > Port already in use: 9681; nested exception is: > java.net.BindException: Address already in use Exception in > thread "jlmAgent" java.lang.Error: snmp agent failed to launch > at > com.ibm.misc.SystemIntialization$3.run(SystemIntialization.java:178) > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:48) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:37) > at java.lang.reflect.Method.invoke(Method.java:600) > at > com.ibm.misc.SystemIntialization$3.run(SystemIntialization.java:175) > Caused by: java.lang.RuntimeException: Exception thrown by the agent > at sun.management.Agent.error(Agent.java:319) > at sun.management.Agent.error(Agent.java:310) > at sun.management.Agent.startAgent(Agent.java:159) > at sun.management.Agent.startAgent(Agent.java:255) > ... 5 more > Resin Professional 4.0.6 (built Tue, 13 Apr 2010 08:56:43 PDT) > Copyright(c) 1998-2010 Caucho Technology. All rights reserved. > > 1010835.license -- 2 Resin servers Intercontinental Hotel Groups (IHG) > > Starting Resin Professional on Tue, 13 Jul 2010 11:09:37 -0400 (EDT) > > OpenSSL support compiled for OpenSSL 0.9.8a 11 Oct 2005 > > > What am I missing? > > Steve Francis > Technical Advisor - zSeries, zLinux, z/OS IHG Alpharetta Data Center > Ph: 770-442-7157 > Cell: 770-906-3122 > IM: francisihg > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://maillist.caucho.com/pipermail/resin-interest/attachments/20100713 > /0ad82b05/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Tue, 13 Jul 2010 09:01:57 -0700 > From: Scott Ferguson <[email protected]> > Subject: Re: [Resin-interest] JMX issue > To: General Discussion for the Resin application server > <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Francis, Steve (IHG) wrote: > >> It doesn't seem to matter what port I give this, it fails. I'll try >> your 9999, but ....I'm not hopeful. Our monitoring folks wanted me to >> > > >> us 681, which is what they have other Resin 3.x systems using, but it >> failed just like 9681 did below. >> Is there something else I'm missing? >> > It looks like you're trying to have either multiple Resin instances > listen to the same port or both the watchdog and the Resin process > listen to that port. > > So, first, how many Resin instances are running on that machine, and > second, are you asking the watchdog to listen for JMX on the same port? > > -- Scott > > > >> >> Error: Exception thrown by the agent : >> java.rmi.server.ExportException: Port already in use: 9681; nested >> exception is: >> java.net.BindException: Address already in use Exception in >> thread "jlmAgent" java.lang.Error: snmp agent failed to launch >> at >> com.ibm.misc.SystemIntialization$3.run(SystemIntialization.java:178) >> Caused by: java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:48) > >> at >> >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:37) > >> at java.lang.reflect.Method.invoke(Method.java:600) >> at >> com.ibm.misc.SystemIntialization$3.run(SystemIntialization.java:175) >> Caused by: java.lang.RuntimeException: Exception thrown by the agent >> at sun.management.Agent.error(Agent.java:319) >> at sun.management.Agent.error(Agent.java:310) >> at sun.management.Agent.startAgent(Agent.java:159) >> at sun.management.Agent.startAgent(Agent.java:255) >> ... 5 more >> Resin Professional 4.0.6 (built Tue, 13 Apr 2010 08:56:43 PDT) >> Copyright(c) 1998-2010 Caucho Technology. All rights reserved. >> >> 1010835.license -- 2 Resin servers Intercontinental Hotel Groups >> (IHG) >> >> Starting Resin Professional on Tue, 13 Jul 2010 11:09:37 -0400 (EDT) >> >> OpenSSL support compiled for OpenSSL 0.9.8a 11 Oct 2005 >> >> What am I missing? >> >> *Steve Francis* >> *Technical Advisor - zSeries, zLinux, z/OS* IHG Alpharetta Data Center >> Ph: 770-442-7157 >> Cell: 770-906-3122 >> IM: francisihg >> >> ---------------------------------------------------------------------- >> -- >> >> _______________________________________________ >> resin-interest mailing list >> [email protected] >> http://maillist.caucho.com/mailman/listinfo/resin-interest >> >> > > > > > > ------------------------------ > > _______________________________________________ > resin-interest mailing list > [email protected] > http://maillist.caucho.com/mailman/listinfo/resin-interest > > > End of resin-interest Digest, Vol 49, Issue 9 > ********************************************* > > ------------------------------------------------------------------------ > > _______________________________________________ > resin-interest mailing list > [email protected] > http://maillist.caucho.com/mailman/listinfo/resin-interest _______________________________________________ resin-interest mailing list [email protected] http://maillist.caucho.com/mailman/listinfo/resin-interest
