tag:blogger.com,1999:blog-16506996.post1786028147421569107..comments2024-02-08T01:57:07.944-07:00Comments on The Digital Voice: Java: Using JRat under EclipseJohn Wardhttp://www.blogger.com/profile/10741149622435353727noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-16506996.post-71979336597469767432012-05-09T00:16:59.926-06:002012-05-09T00:16:59.926-06:00But this way JRat will give a static view of the a...But this way JRat will give a static view of the analysis as we have not done any such instrumentation of jars. What if we want to find the bottlenecks in the code in the actual environment when the application is running. I mean configuring JRat in such a way which involves instrumentation of jars and etc....Ankurhttps://www.blogger.com/profile/08723393272457875205noreply@blogger.comtag:blogger.com,1999:blog-16506996.post-39645422694433806662010-10-18T11:20:46.171-06:002010-10-18T11:20:46.171-06:00I also had the error:
Error occurred during initi...I also had the error:<br /><br />Error occurred during initialization of VM<br />agent library failed to init: instrument<br /><br />Error opening zip file: shiftone-jrat.jar<br /><br />To resolve the error in the "Run Configurations" / arguments panel inside eclipse I explicitly set the "VM arguments" to the full path to my installation of the shiftone-jrat.jar as follows:<br /><br />-javaagent:"d:\tools\rjat\shiftone-jrat.jar" <br /><br />Hope this helps someone out there.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16506996.post-48909188891623452212009-10-05T10:36:06.791-06:002009-10-05T10:36:06.791-06:00cntrl+c cntrl+v
if jdk 1.5 or above
java -javaage...cntrl+c cntrl+v<br />if jdk 1.5 or above<br /><br />java -javaagent:shiftone-jrat.jar [your java ops] [main class]<br />java -Xmx256M -jar shiftone-jrat.jarAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-16506996.post-45886823683162627522009-09-02T10:13:02.817-06:002009-09-02T10:13:02.817-06:00I tried the same thing but it gave me an error
Er...I tried the same thing but it gave me an error <br />Error occurred during initialization of VM<br />agent library failed to init: instrument<br />Failed to find Premain-Class manifest attribute in C:\Installer\shiftone-jrat-0.6\shiftone-jrat-0.6\dist\shiftone-jrat.jar<br /><br />Do you know about it?Unknownhttps://www.blogger.com/profile/03894598657349700572noreply@blogger.comtag:blogger.com,1999:blog-16506996.post-70306234297232023092009-05-27T13:47:53.679-06:002009-05-27T13:47:53.679-06:00Thanks for your post. It has inspired me to take ...Thanks for your post. It has inspired me to take a look at JRat under eclipse.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16506996.post-35795286846642132872008-05-14T06:08:00.000-06:002008-05-14T06:08:00.000-06:00Giving it a go now... I managed to get the eclipse...Giving it a go now... I managed to get the eclipse profiler working 6 months ago, but since then I've had no end of problems...Anonymousnoreply@blogger.com