On 12/11/2008, Andrew Ralph Feller, afelle1 <[EMAIL PROTECTED]> wrote: > Sebb, > > My colleague pointed out how the "Integer.parseInt()" call in the stack > trace threw an exception. I'm currently looking for Apple's Java 6 SE > Javadoc to determine if it conforms to Sun Java 6 SE Javadoc, however I am > fairly sure they are comparable. > > Thoughts?
The first part of the stack is: J java.lang.Throwable.fillInStackTrace()Ljava/lang/Throwable; J java.lang.IllegalArgumentException.<init>(Ljava/lang/String;)V J java.lang.Integer.parseInt(Ljava/lang/String;I)I which means that the fillInStackTrace() method is the actual cause of the crash. This is a native method (at least in the Sun JVMs I've checked), so can easily cause the crash. Looking further up the stack, it seems the parseInt() is being used by getInputStream() while reading an HTTPSample response. I guess the input stream needs to be partially read before passing it back to the caller in order to strip off the HTTP headers. The most likely number it needs to parse is the Status Code (e.g. 200). If you are interested, you could always use a protocol analyser to see if the HTTP headers are well-formed or not. There must be some unusual combination of circumstances which causes the fillInStackTrace() method to fail. This method will be called lots of times, and the JVM would hardly work at all if it always failed, likewise if invalid integers always caused a crash this would surely have been noticed before the JVM code was released. Minor changes to the test plan may allow you to proceed with testing, but the only long-term solution is to install a JVM without the bug... > Thanks, > Andrew > > > Current thread (0x0000000101b8c000): JavaThread "Thread Group 1-2" > [_thread_in_vm, id=768688128, stack(0x000000012dc14000,0x000000012dd14000)] > Stack: [0x000000012dc14000,0x000000012dd14000] > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > J java.lang.Throwable.fillInStackTrace()Ljava/lang/Throwable; > J java.lang.IllegalArgumentException.<init>(Ljava/lang/String;)V > J java.lang.Integer.parseInt(Ljava/lang/String;I)I > J sun.net.www.protocol.http.HttpURLConnection.getInputStream() > Ljava/io/InputStream; > J org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse > > (Ljava/net/HttpURLConnection;Lorg/apache/jmeter/samplers/SampleResult;)[B > > J org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample > > (Ljava/net/URL;Ljava/lang/String;ZI) > > Lorg/apache/jmeter/protocol/http/sampler/HTTPSampleResult; > J org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample > > (Lorg/apache/jmeter/samplers/Entry;) > > Lorg/apache/jmeter/samplers/SampleResult; > J org.apache.jmeter.threads.JMeterThread.run()V > j java.lang.Thread.run()V+11 > v ~BufferBlob::StubRoutines (1) > > > > > On 11/12/08 8:24 AM, "sebb" <[EMAIL PROTECTED]> wrote: > > > > On 12/11/2008, Andrew Ralph Feller, afelle1 <[EMAIL PROTECTED]> wrote: > >> Has anyone encountered Jmeter crashing in the middle of a test? I am > >> running Jmeter 2.3.2 on Mac OS X with 4 GB of ram, so I know I have > plenty > >> of space. While running the test in the background, I am also running MS > >> Entourage / Outlook, Eclipse, Adium / Pidgin, and Firefox. > >> > >> I would appreciate any help available! I have copied the error log below > >> incase it might be helpful. > > > > JMeter does not use any native code, so any JVM crash must be due to a > > bug in the JVM. > > I suggest you report the crash to your JVM supplier. > > > > BTW, you might want to give the JVM some more memory: > > > > -Xms256m -Xmx256m > > could be replaced with > > -Xms512m -Xmx512m > > > > This may or may not help the JVM avoid crashing - depends on what the > > bug is - but worth a try as it is easy to do (edit the startup > > script). > > > >> Thanks! > >> Andrew > >> > >> > >> Process: java [171] > >> Path: /usr/bin/java > >> Identifier: com.apple.javajdk16.org.apache.jmeter.NewDriver > >> Version: 12.2.0 (12.2.0) > >> Code Type: X86-64 (Native) > >> Parent Process: sh [169] > >> > >> Date/Time: 2008-11-11 14:19:33.891 -0600 > >> OS Version: Mac OS X 10.5.5 (9F33) > >> Report Version: 6 > >> > >> Exception Type: EXC_BAD_ACCESS (SIGSEGV) > >> Exception Codes: KERN_INVALID_ADDRESS at 0xfffffffffffffff8 > >> Crashed Thread: 18 > >> > >> Application Specific Information: > >> > >> Java information: > >> Exception type: Bus Error (0xa) at pc=0x00000001010f374c > >> > >> Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0_07-b06-57 mixed mode > >> macosx-amd64) > >> > >> Current thread (0x0000000101b8c000): JavaThread "Thread Group 1-2" > >> [_thread_in_vm, id=768688128, > stack(0x000000012dc14000,0x000000012dd14000)] > >> Stack: [0x000000012dc14000,0x000000012dd14000] > >> Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > >> J java.lang.Throwable.fillInStackTrace()Ljava/lang/Throwable; > >> J java.lang.IllegalArgumentException.<init>(Ljava/lang/String;)V > >> J java.lang.Integer.parseInt(Ljava/lang/String;I)I > >> J > >> > sun.net.www.protocol.http.HttpURLConnection.getInputStream()Ljava/io/InputSt > >> ream; > >> J > >> > org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(Ljava/net/H > >> ttpURLConnection;Lorg/apache/jmeter/samplers/SampleResult;)[B > >> J > >> > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(Ljava/net/URL;Lja > >> > va/lang/String;ZI)Lorg/apache/jmeter/protocol/http/sampler/HTTPSampleResult; > >> J > >> > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(Lorg/apache/j > >> meter/samplers/Entry;)Lorg/apache/jmeter/samplers/SampleResult; > >> J org.apache.jmeter.threads.JMeterThread.run()V > >> j java.lang.Thread.run()V+11 > >> v ~BufferBlob::StubRoutines (1) > >> > >> Heap > >> def new generation total 114688K, used 70435K [0x0000000105000000, > >> 0x000000010d000000, 0x000000010d000000) > >> eden space 98304K, 71% used [0x0000000105000000, 0x00000001094c8e30, > >> 0x000000010b000000) > >> from space 16384K, 0% used [0x000000010b000000, 0x000000010b000000, > >> 0x000000010c000000) > >> to space 16384K, 0% used [0x000000010c000000, 0x000000010c000000, > >> 0x000000010d000000) > >> tenured generation total 131072K, used 110189K [0x000000010d000000, > >> 0x0000000115000000, 0x0000000115000000) > >> the space 131072K, 84% used [0x000000010d000000, 0x0000000113b9b7c8, > >> 0x0000000113b9b800, 0x0000000115000000) > >> compacting perm gen total 65536K, used 34007K [0x0000000115000000, > >> 0x0000000119000000, 0x0000000119000000) > >> the space 65536K, 51% used [0x0000000115000000, 0x0000000117135df8, > >> 0x0000000117135e00, 0x0000000119000000) > >> No shared spaces configured. > >> > >> Virtual Machine Arguments: > >> JVM Args: -Xserver -Dcom.sun.management.jmxremote -Xms256m -Xmx256m > >> -XX:NewSize=128m -XX:MaxNewSize=128m -XX:MaxTenuringThreshold=2 > >> -Dsun.rmi.dgc.client.gcInterval=600000 > >> -Dsun.rmi.dgc.server.gcInterval=600000 -XX:PermSize=64m > -XX:MaxPermSize=64m > >> Java Command: /Applications/jakarta-jmeter-2.3.2/bin/ApacheJMeter.jar > >> Launcher Type: SUN_STANDARD > >> Physical Memory: Page Size = 4k, Total = 2048M, Free = 1949M > >> -- > >> Andrew R. Feller, Analyst > >> Information Technology Services > >> 200 Fred Frey Building > >> Louisiana State University > >> Baton Rouge, LA 70803 > >> (225) 578-3737 (Office) > >> (225) 578-6400 (Fax) > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- > > Andrew R. Feller, Analyst > Information Technology Services > 200 Fred Frey Building > Louisiana State University > Baton Rouge, LA 70803 > (225) 578-3737 (Office) > (225) 578-6400 (Fax) > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

