Skip to Content
avatar image
Former Member

NoClassDefFoundError in SAP JVM Profiler Plugin for NWDS

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Apr 15, 2014 at 08:05 PM

    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: Using the SAP JVM Profiler & Memory Analyzer for SAP NetWeaver PI integrations – Webinar Replay

    Thank you and have a nice day :).

    _____________

    Kind Regards,

    Hemanth

    SAP AGS
     

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 16, 2014 at 07:24 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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?

  • avatar image
    Former Member
    Apr 16, 2014 at 01:55 PM

    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

    Add comment
    10|10000 characters needed characters exceeded