Hi
I want to check the memory allocation of my objects. As far as I know that java has a concept of agent which need to be passed to the JVM during startup.
Well I'm trying to use an API viz. classmexer which need to be passed to jvm as described there.
I did all those things as told ( so far the notion I have is I need to create a agent so that I can have a instance of instrumentation from JVM).
before I show what I did here are the some facts about my application.
Application server using : Resin 4.0.38
JDK in use : 1.6.10
using ant for build and deployment.
Passing jvm argument in servers config file as below:
Note : able to compile successfully.
HTML Code:<resin xmlns="http://caucho.com/ns/resin" xmlns:resin="http://caucho.com/ns/resin/core"> <resin:import path="${resin.home}/conf/base.xml"/> <cluster id="app-tier"> <resin:import path="${resin.home}/conf/base-cluster.xml"/> <dependency-check-interval>1s</dependency-check-interval> <server-default> <!-- - The JVM arguments --> <jvm-arg>-Xmx512m</jvm-arg> <jvm-arg>-Xss1m</jvm-arg> <jvm-arg>-Xdebug</jvm-arg> <jvm-arg>-XX:MaxPermSize=128m</jvm-arg> <jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg> <jvm-arg>-javaagent:classmexer.jar</jvm-arg>------------------------>> is the jar file which is located in application's lib folder
when I start my server I get following Error on servers console:
HTML Code:Error opening zip file or JAR manifest missing : classmexer.jar Error occurred during initialization of VM agent library failed to init: instrument
This classmexer.jar contains a manifest file under manifest folder.
all I want is a helping hand to start JVM with this agent!!!
Kiindly tell me where I got it wrong?
Thanking you in advance.