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
JConsole
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- Stake
- Posts: 383
- Joined: Sun Mar 23, 2008 9:33 pm
- Location: Hungary
- Contact:
Re: JConsole
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.
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.
- delix
- Posts: 11
- Joined: Sun Feb 06, 2011 9:52 pm
- Location: Ukraine, Crimea, Eastern Еurope baby;)
Re: JConsole
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 !!!
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"
- Stake
- Posts: 383
- Joined: Sun Mar 23, 2008 9:33 pm
- Location: Hungary
- Contact:
Re: JConsole
It's not that hard. Setting up a Java profiler consists of just a few steps: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 !!!
- 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...