Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Cannot profile junit test

Moderators: Vladimir Kondratyev, Anton Katilin

Cannot profile junit test

Postby sv » Wed Dec 07, 2005 7:39 pm

When running simple test within eclipse with JUnit all goes fine
but when i try to profile that test i have
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:589)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.textui.TestRunner.doRun(TestRunner.java:116)
at junit.textui.TestRunner.doRun(TestRunner.java:109)
at junit.textui.TestRunner.run(TestRunner.java:72)
at junit.textui.TestRunner.run(TestRunner.java:57)
at ru.arptek.arpsite.fs.JPEGTransformationTest.main(JPEGTransformationTest.java:10)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.<init>(DataBufferByte.java:58)
at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleModel.java:397)
at java.awt.image.Raster.createWritableRaster(Raster.java:938)
at com.sun.imageio.plugins.bmp.BMPImageReader.read(BMPImageReader.java:726)
at javax.imageio.ImageIO.read(ImageIO.java:1400)
at javax.imageio.ImageIO.read(ImageIO.java:1286)
at JPEGTransformation.transform(JPEGTransformation.java:62)
at JPEGTransformationTest.testTransform(JPEGTransformationTest.java:25)
... 17 more
Exception in thread "main"

what i do wrong?
sv
 
Posts: 8
Joined: Wed Nov 16, 2005 6:26 pm

Return to Java Profiler

Who is online

Users browsing this forum: Google [Bot] and 5 guests

cron