虚無僧2.0.3のインストールについて

213 views
Skip to first unread message

虚無僧

unread,
Jun 26, 2009, 7:45:47 PM6/26/09
to Komuso ML J
はじめまして。

虚無僧と申します。

JAVAの知識がない中で基本的な質問
大変申し訳ありません。

以下の環境で虚無僧2.0.3をインストールし、JBossのヒープ監視を
しようとしていますが、エラーが出力され監視が出来ていない状態です。
原因が分かれば教えてください。

<環境>
Windows2003 Server R2
JBoss4.2.3.GA
JDK1.5

<状況>
http://yusuke.homeip.net/komuso/ja/index.html#introduction
から虚無僧2.0.3をダウンロードし、サイト通りの変更内容を
実施して適用させようとしています。

<疑問>
1.項番2「アプリケーションの設定」のrun.cmdの変更で
  「-Dcom.sun.management.jmxremote.port=8999 」とありますが
  port番号は何番を設定すれば良いのでしょうか?
2.項番3「properties ファイルの用意 」の変更で
  「JMXServiceURL=service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi」
  とありますが、同じくport番号は何を設定すれば良いでしょうか?
3.komuso2.0.3のディレクトリにcompile.cmdがありますが、
  実行する必要は無いのでしょうか?

<エラー>
上記のportをいろいろなネットで見て、良く分からないまま
port1099でrun.cmdとkomuso.propertiesを変更し
compile.cmdは実行せずに、先に進みました。

項番4の「MBeanDoc の生成 」を実行したところ
以下のエラーが出力されました。
-------------------------エ
ラー----------------------------------------------------

D:\komuso2.0.3>mbeandoc.cmd komuso.properties

D:\komuso2.0.3>echo off
D:\Java\jdk1.5.0_17\bin\java -classpath ";.\lib\logback-
classic-0.9.9.jar;.\lib\logback-core-0.9.9.j
ar;.\lib\slf4j-api-1.5.0.jar;.\lib\velocity-dep-1.5.jar;.\classes"
MBeanDoc komuso.properties
Exception in thread "main" java.io.IOException: Failed to retrieve
RMIServer stub: javax.naming.Comm
unicationException [Root exception is java.rmi.ConnectIOException: non-
JRMP server at remote endpoin
t]
at javax.management.remote.rmi.RMIConnector.connect
(RMIConnector.java:317)
at javax.management.remote.JMXConnectorFactory.connect
(JMXConnectorFactory.java:248)
at MBeanDoc.generateMBeanDoc(MBeanDoc.java:71)
at MBeanDoc.main(MBeanDoc.java:41)
Caused by: javax.naming.CommunicationException [Root exception is
java.rmi.ConnectIOException: non-J
RMP server at remote endpoint]
at com.sun.jndi.rmi.registry.RegistryContext.lookup
(RegistryContext.java:97)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup
(GenericURLContext.java:185)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI
(RMIConnector.java:1817)
at javax.management.remote.rmi.RMIConnector.findRMIServer
(RMIConnector.java:1787)
at javax.management.remote.rmi.RMIConnector.connect
(RMIConnector.java:259)
... 3 more
Caused by: java.rmi.ConnectIOException: non-JRMP server at remote
endpoint
at sun.rmi.transport.tcp.TCPChannel.createConnection
(TCPChannel.java:217)
at sun.rmi.transport.tcp.TCPChannel.newConnection
(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.lookup
(RegistryContext.java:93)
... 8 more
ファイル .\mbeandocroot\index.html が見つかりません。

D:\komuso2.0.3>
-------------------------------------------------------------------------------------------------------


その後、上記エラーを解決しないまま
項番6「モニタリング」を実行してみました。
その結果、監視は出来ておらず「komuso_status.log」に
以下のメッセージが出力されました。

--------------------
komuso_status.log-----------------------------------------------------
2009-06-26 13:16:54,513 INFO - Trying to connect to the MBean Server.
2009-06-26 13:16:54,606 WARN - IOException throwed while connecting
to the MBean server. Will retry 5 seconds later.
-------------------------------------------------------------------------------------------------------


知識不足で設定方法もエラーの解決方法も分かっていません・・・・。

大変面倒ですが、ご教授願います。
Reply all
Reply to author
Forward
0 new messages