JConsole

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
goncafa
Posts: 385
Joined: Thu Aug 05, 2010 2:10 pm
Location: Santiago, Chile

JConsole

Post 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:
Best Regards

PS: im sorry my bad english.
Image
User avatar
Stake
Posts: 383
Joined: Sun Mar 23, 2008 9:33 pm
Location: Hungary
Contact:

Re: JConsole

Post 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.
Image
Image
User avatar
delix
Posts: 11
Joined: Sun Feb 06, 2011 9:52 pm
Location: Ukraine, Crimea, Eastern Еurope baby;)

Re: JConsole

Post 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 !!!
"Life is what happens to you while you're busy making other plans"
User avatar
Stake
Posts: 383
Joined: Sun Mar 23, 2008 9:33 pm
Location: Hungary
Contact:

Re: JConsole

Post 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...
Image
Image
Post Reply