Page 1 of 1

JConsole

Posted: Wed Jul 20, 2011 3:55 pm
by goncafa
I want to monitoring my remote server with JConsole, but i do not understand how i can configure l2jserver for start whit it.

Im using Linux, if some one can help me please :oops:

Re: JConsole

Posted: Thu Jul 21, 2011 10:21 am
by Stake
Hi!

Read this -> http://download.oracle.com/javase/1.5.0 ... l#starting

I recommend you to use a profiler app to monitor every "action" in the code.
Download ejp-r2_2b1-unix-common.tar.gz and ejp-r2_2b1-unix-x86-linux.tar.bz2 from http://ejp.sourceforge.net/ .
- Add the lib directory to the PATH
- Copy the .so file to the lib directory
- Add the lib directory to LD_LIBRARY_PATH and add lib/tracerapi.jar to CLASSPATH, or simply run: ./run-enabled <your app parameters>
It will run the app with "java -Xruntracer:enabled=true" command, so it sets ejp as the tracer api for your app.

Re: JConsole

Posted: Sun Jul 31, 2011 2:10 pm
by delix
Hi Stake!

Could you plz :) make a manual with one more examples and screens how to install Java Profiler step-by-step according to l2jserver. Because I didn't get clearly in preceding explanation :(
I really wanna use it to realize what exactly going on on the server.

Community and I will be very gratefuller if you done this !!!

Re: JConsole

Posted: Sun Jul 31, 2011 6:02 pm
by Stake
delix wrote:Hi Stake!

Could you plz :) make a manual with one more examples and screens how to install Java Profiler step-by-step according to l2jserver. Because I didn't get clearly in preceding explanation :(
I really wanna use it to realize what exactly going on on the server.

Community and I will be very gratefuller if you done this !!!
It's not that hard. Setting up a Java profiler consists of just a few steps:
- add the library path where jar's and dll's for the tracer app are to the PATH variable (like C:\javatracer\lib\)
- add the main jar for the tracer to the CLASSPATH variable (like C:\javatracer\lib\tracer.jar)
- run your app with: java -Xruntracer:enabled=true -cp ./somelib/*;somejar.jar etc...