Discussion:
[Resin-interest] 3.1.2 - Problems with multiple instances on same machine
Jason Chodakowski
2007-08-11 14:01:34 UTC
Permalink
Because we need JVM isolation between web application, we run
multiple instances of resin - we're getting this error on system
startup (everything coming up from scratch)

[2007/08/11 06:49:59.690] java.net.BindException: Address already in use
[2007/08/11 06:49:59.690] Can't bind to /127.0.0.1:6600.
[2007/08/11 06:49:59.690] Check for another server listening to that
port.
[2007/08/11 06:49:59.690] at
com.caucho.vfs.QJniServerSocket.create(QJniServerSocket.java:103)
[2007/08/11 06:49:59.690] at com.caucho.server.port.Port.bind
(Port.java:804)
[2007/08/11 06:49:59.690] at
com.caucho.server.cluster.Server.bindPorts(Server.java:1155)
[2007/08/11 06:49:59.690] at
com.caucho.server.cluster.Server.start(Server.java:1105)
[2007/08/11 06:49:59.690] at
com.caucho.boot.ResinWatchdogManager.<init>(ResinWatchdogManager.java:
138)
[2007/08/11 06:49:59.690] at
com.caucho.boot.ResinWatchdogManager.main(ResinWatchdogManager.java:262)
java.lang.NullPointerException
at com.caucho.boot.ResinWatchdogManager.<init>
(ResinWatchdogManager.java:146)
at com.caucho.boot.ResinWatchdogManager.main
(ResinWatchdogManager.java:262)

Once the system is up, we can manually start the additional servers.
The upshot is that only the first server in line starts, and then
things are hosed.

Hope this is useful, or... if someone has seen this and has a fix/
workaround, please let me know.

Cheers,

J --
Mike Wynholds
2007-08-13 17:15:29 UTC
Permalink
The default port for the Resin watchdog process is 6600. If you run
multiple instances on one JVM you need to set the watchdog port on all
(but one) of them:

<server id="app-a" address="192.168.7.6" port="6800"
watchdog-port="6700">
<http port="8080"/>
</server>

..mike..

-----Original Message-----
From: resin-interest-bounces at caucho.com
[mailto:resin-interest-bounces at caucho.com] On Behalf Of Jason
Chodakowski
Sent: Saturday, August 11, 2007 7:02 AM
To: General Discussion for the Resin application server
Subject: [Resin-interest] 3.1.2 - Problems with multiple instances on
samemachine

Because we need JVM isolation between web application, we run
multiple instances of resin - we're getting this error on system
startup (everything coming up from scratch)

[2007/08/11 06:49:59.690] java.net.BindException: Address already in use
[2007/08/11 06:49:59.690] Can't bind to /127.0.0.1:6600.
[2007/08/11 06:49:59.690] Check for another server listening to that
port.
[2007/08/11 06:49:59.690] at
com.caucho.vfs.QJniServerSocket.create(QJniServerSocket.java:103)
[2007/08/11 06:49:59.690] at com.caucho.server.port.Port.bind
(Port.java:804)
[2007/08/11 06:49:59.690] at
com.caucho.server.cluster.Server.bindPorts(Server.java:1155)
[2007/08/11 06:49:59.690] at
com.caucho.server.cluster.Server.start(Server.java:1105)
[2007/08/11 06:49:59.690] at
com.caucho.boot.ResinWatchdogManager.<init>(ResinWatchdogManager.java:
138)
[2007/08/11 06:49:59.690] at
com.caucho.boot.ResinWatchdogManager.main(ResinWatchdogManager.java:262)
java.lang.NullPointerException
at com.caucho.boot.ResinWatchdogManager.<init>
(ResinWatchdogManager.java:146)
at com.caucho.boot.ResinWatchdogManager.main
(ResinWatchdogManager.java:262)

Once the system is up, we can manually start the additional servers.
The upshot is that only the first server in line starts, and then
things are hosed.

Hope this is useful, or... if someone has seen this and has a fix/
workaround, please let me know.

Cheers,

J --

Continue reading on narkive:
Loading...