GlassFish will not start when SNMP is enabled
Posted
by edarc
on Server Fault
See other posts from Server Fault
or by edarc
Published on 2010-01-27T16:04:27Z
Indexed on
2010/04/11
4:03 UTC
Read the original article
Hit count: 621
I have a GlassFish v3 app server running on 64-bit Debian Lenny. Everything is running fine, except I would like to monitor GF's JVM instance with SNMP. However, every time I try to enable it by adding the following <jvm-options>
in domain.xml:
-Dcom.sun.management.snmp.port=10161
-Dcom.sun.management.snmp.acl.file=/path/to/snmp.acl
-Dcom.sun.management.snmp.interface=127.0.0.1
GlassFish refuses to start:
$ asadmin start-domain
Waiting for DAS to start .Error starting domain: default.
The server exited prematurely with exit code 1.
Command start-domain failed.
$
There is also nothing illuminating (well, really nothing at all) in jvm.log or server.log. The snmp.acl file contains:
acl = {
{
communities = public
access = read-only
managers = localhost
}
}
and is chmod 600 (I know this is not the problem because it will actually fail with an error about the permissions if it is set to anything other than 600)
$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (build 1.6.0_0-b11)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
© Server Fault or respective owner