on 04-15-2014 4:52 PM
Hello,
I want to use the SAP JVM Profiler (Java Profiling - SAP Netweaver Application Server Java - SCN Wiki) to find the bottlenecks in our SAP NetWeaver Portal, because after some Month it gets very slow an at the end their is an OutOfMemoryError. Some objects getting to big.
When I install the Profiler-Plugin Version 2.0.17 in Netweaver Developer Studio for SAP NetWeaver 7.3 SP07 PAT0002, I get this Error-Message
java.lang.NoClassDefFoundError: Could not initialize class com.sap.jvm.profiling.ui.widgets.vmexplorer.BoardsController
in the ErrorLog when opening the VM Explorer.
After hours, I'm out of ideas. Why is this widget missing and what can I do?
Thanks.
Hi Thomas,
Hope you are doing good.
Are you using the latest SAPJVM version? If not, download the latest one from the SMP, see SAP Note 1442124.
Also you need to have the “Microsoft Visual C++ 2010 Redistributable Package” installed.
Make sure that you go through:
Thank you and have a nice day :).
_____________
Kind Regards,
Hemanth
SAP AGS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes after another bunch of hours I found it: the “Microsoft Visual C++ 2010 Redistributable Package" By now I have installed both architectures (x86 & x64) but I think it is only necessary to install in the architecutre the profiler plugin is. In my case x86.
I think like Matthias said, an update of the SAP JVM is not necessary.
Thanks to all for your help and advices.
Greating,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas,
actually you don't need to update the SAP JVM or install the microsoft redistributable package (in fact the profiler also runs on other Java runtimes). There seems to be a problem with the installed eclipse plugins. There should be a folder named "com.sap.jvm.profiling.ui.widgets_2.0.17" located in the plugins folder of your eclipse installation. Within this folder there should be "profiling_2.0_ui_widgets.jar" containing the missed class.
Btw. have you set -XX:+HeapDumpOnOutOfMemoryError ? If yes, the JVM creates a heap dump when such an error occurs which you can analyze with the Memory Analyzer and inspect potential memory leaks. Alternatively you can trigger a heap dump whenever you want to with the command-line tool jvmmon (command 'dump heap').
The poor performance after some months could to be related the heavy GC activity (probably due to the memory leak or shortage). If your JVM was started with -XX:+GCHistory you also get a log of all GCs that happend (use command 'retrieve complete gc history' in a jvmmon session to get the file). This file can be imported into Profiler 2.0 for graphical GC analysis.
Best regards,
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok,
the class-file is their. I extracted the JAR-File. The Plugin is installed right.
Yes we used the -XX:+HeapDumpOnOutOfMemoryError flag and I get a Heapdump,
but by now I could not find any real suspects. But I don't know by know, what I am looking for.
The GC-History is a good idea. I will give it a try. But I could not Import it to the profiler, cause
this Plugin doesn't function correct in NWDS. I installed the profiler plugin in a separate eclipse installation, which causes no problems, when I executed it on my local machine. When I execute it on the server machine, it throws the same error. Looks like a problem with the installed JRE / JDK. I will do an update and post the results.
Thanks,
Thomas
I hope I startet it right:
Locale Machine (Plugin is funtional)
PS M:\Software\OS-Tools\SAP JVM Profiler\profiler\plugins> java jar .\org.eclipse.osgi_3.5.2.R35x_v20100126.jar -console
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
osgi> ss
Framework is launched.
id State Bundle
0 ACTIVE org.eclipse.osgi_3.5.2.R35x_v20100126
Server Machine (Plugin is not functional)
PS C:\Program Files (x86)\SAP\developer\eclipse\plugins> java -jar .\org.eclipse.osgi_3.5.2.R35x_v20100126.jar -console
osgi> ss com.sap.jvm
Framework is launched.
id State Bundle
Could this be the Problem, that the Bundle is not running on the Server?
This function is only in Eclipse > 3.8 available. NWDS 7.3 based on Eclipse 3.5. So I have too use eclipse.exe -console. But this only btw.
The ouput is in the file.
When I use the pure eclipse 3.5 with the profiler plugin, I get the following error:
osgi> Loading of sapjvm_inspector.dll via System.loadLibrary failed because of: X:\Software\OS-Tools\SAP JVM Profiler\profiler\plugins\com.sap.jvm.inspector_2.0.17\natives\com\sap\jvm\inspector\ntintel\sapjvm_inspector.dll: Can't find dependent libraries
which can be the problem. But what libraries are missing?
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.