JVM option invalid: -agentpath...

CodePro Profiler allows you to find performance bottlenecks, memory leaks and threading issues in a painless and intuitive manner.

Moderators: gnebling, jwren, Eric Clayberg, Dan Rubel, Brian Wilkerson, ppetrochenko, Ilya

JVM option invalid: -agentpath...

Postby Alastair » Tue Jul 21, 2009 12:03 am

Hi Folks,

I've got a simple bug I'm having problems ironing out... probably the hot summer weather!

I've bought and activated Profiler, and now I cannot start WAS6 in RAD7. I thought I'd introduced the problem by trying to run Profiler before it was activated. This may still be the case. I was messing around trying to find ways that I may be able to profile a jar running in the server and this involved clicking on things that I didn't know what they did and then promptly forgetting all the things I'd been trying. You know, standard IT guy with unfamiliar software behaviour... :D

When I try to start WAS in RAD I get this in the console:

ADMU3011E: Server launched but failed initialization. startServer.log,
SystemOut.log(or job log in zOS) and other log files under
C:\IBMSDP\7.0\runtimes\base_v6/profiles/default\logs\server1 should
contain failure information.


And in the file native_sterr.log in C:\IBMSDP\7.0\runtimes\base_v6\profiles\default\logs\server1 I get this line:

The JVM option is invalid: -agentpath:C:\IBMSDP\7.0Shared\plugins\eclipse\plugins\com.instantiations.jvmti.agent.win32.x86_2.2.0.200907152126\agent.dll=mode=37,s=was.base.v6,port=2686,telemetryInterval=100,samplingInterval=100,mos=1024,tna=1000,jpp=C:\IBMSDP\7.0Shared\plugins\eclipse\plugins\com.instantiations.jvmti.agent_2.2.0.200907152126\agent.jar
Could not create the Java virtual machine.


I get this error starting WAS6 in a clean workspace too.

Profiler version is 2.2.0.200907152126.
I also have Analytix installed which is working well.

Has anyone got any ideas?
Alastair
 
Posts: 1
Joined: Thu Jul 16, 2009 3:54 am
Location: Europe

Re: JVM option invalid: -agentpath...

Postby anadikumar » Thu Mar 25, 2010 10:03 pm

Solution for windows-XP and Linux
Let WPS_HOME = C:\IBM\WebSphere

Step (1): Go to command prompt
Step (2): cd <WPS_HOME>\wp_profile\bin
Step (3): execute file "osgiCfgInit.bat" at command prompt

Now, start server using startServer.bat

Step (4): startServer.bat WebSphere_Portal -user wpsadmin -password wpsadmin

serverName : WebSphere_Portal
userName : wpsadmin
password : wpsadmin

Note: For Linux, use osgiCfgInit.sh and startServer.sh file

Regards,
Anadi Kumar,
Patna, Bihar, India
anadikumar
 
Posts: 2
Joined: Thu Mar 25, 2010 9:52 pm

Re: JVM option invalid: -agentpath...

Postby anadikumar » Thu Mar 25, 2010 10:03 pm

Solution for windows-XP and Linux
Let WPS_HOME = C:\IBM\WebSphere

Step (1): Go to command prompt
Step (2): cd <WPS_HOME>\wp_profile\bin
Step (3): execute file "osgiCfgInit.bat" at command prompt

Now, start server using startServer.bat

Step (4): startServer.bat WebSphere_Portal -user wpsadmin -password wpsadmin

serverName : WebSphere_Portal
userName : wpsadmin
password : wpsadmin

Note: For Linux, use osgiCfgInit.sh and startServer.sh file

Regards,
Anadi Kumar,
Patna, Bihar, India
anadikumar
 
Posts: 2
Joined: Thu Mar 25, 2010 9:52 pm

Re: JVM option invalid: -agentpath...

Postby ignatan » Wed Nov 10, 2010 7:09 am

Hi
I get a similar error. The logs say:

Exception in thread "main" java.lang.NoClassDefFoundError: "-agentpath:C:\Program
Caused by: java.lang.ClassNotFoundException: "-agentpath:C:\Program
at java.net.URLClassLoader.findClass(URLClassLoader.java:419)
at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:300)
at java.lang.ClassLoader.loadClass(ClassLoader.java:609)

My Websphere installation is under Program Files. I guess this has got to do with the space in "Program Files" . I tried changing all the env settings to PROGRA~1.

Any ideas?
Thanks
ignatan
 
Posts: 1
Joined: Tue Nov 09, 2010 1:17 pm


Return to CodePro Profiler

Who is online

Users browsing this forum: No registered users and 1 guest