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

Problem using YourKit to profile an app that uses Axis

Moderators: Vladimir Kondratyev, Anton Katilin

Problem using YourKit to profile an app that uses Axis

Postby mraible » Mon Apr 04, 2005 8:55 pm

We have a fairly simple application that talks to a web services backend (using Axis). When I "start recording object allocations", the call to web services fails on the backend and we cannot use our app (or profile it). When I stop (using "discard"), everything runs fine. Here's the exception:

Code: Select all
Apr 4, 2005 2:49:40 PM org.apache.axis.Message writeTo
SEVERE: java.io.IOException:
java.net.SocketException: Software caused connection abort: socket write error
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(Unknown Source)
        at java.net.SocketOutputStream.write(Unknown Source)
        at java.io.BufferedOutputStream.write(Unknown Source)
        at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(Unknown Source)
        at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(Unknown Source)
        at sun.nio.cs.StreamEncoder.write(Unknown Source)
        at java.io.OutputStreamWriter.write(Unknown Source)
        at java.io.BufferedWriter.flushBuffer(Unknown Source)
        at java.io.BufferedWriter.write(Unknown Source)
        at java.io.Writer.write(Unknown Source)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:277)
        at org.apache.axis.Message.writeTo(Message.java:440)
        at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja
va:466)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:122)

        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
        at org.apache.axis.client.Call.invoke(Call.java:2553)
        at org.apache.axis.client.Call.invoke(Call.java:2248)
        at org.apache.axis.client.Call.invoke(Call.java:2171)
        at org.apache.axis.client.Call.invoke(Call.java:1691)


Is there anyway to exclude org.axis from being included in the profile? We have a memory issue and we're trying to identify where it's happening at.

Thanks,

Matt
mraible
 
Posts: 4
Joined: Mon Apr 04, 2005 8:50 pm

Postby Vladimir Kondratyev » Tue Apr 05, 2005 6:35 am

At the first glance this exception does not have any connection with profiling. Does it happen only when you enable recording of object allocations?
Vladimir Kondratyev
 
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby mraible » Tue Apr 05, 2005 2:28 pm

Yes, it only happens when I enable recording of object allocations. If I turn that off, it works fine. Also, I've found that using OptimizeIt works fine and doesn't cause this problem.
mraible
 
Posts: 4
Joined: Mon Apr 04, 2005 8:50 pm

Postby Vladimir Kondratyev » Tue Apr 05, 2005 4:22 pm

OK. Couldn't you please send us a small sample which demonstrates the problem. I do know that profiler doesn't prevent any process to write to socket.

Thank you in advance,
Vladimir Kondratyev
Vladimir Kondratyev
 
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby mraible » Fri Apr 15, 2005 4:05 pm

I can't really whip up an application to demonstrate this, but we did figure out the problem with OptimizeIt. It turned out to be that the web services loading a large amount of object was causing a bunch of Axis objects to hang around. We changed to loading our objects with EJBs and it fixed the problem.

Thanks,

Matt
mraible
 
Posts: 4
Joined: Mon Apr 04, 2005 8:50 pm


Return to Java Profiler

Who is online

Users browsing this forum: Google [Bot] and 1 guest

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.