Giter VIP home page Giter VIP logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Whoops, completely missed this issue. Can confirm this issue after a brief 
check. Investigating.

Original comment by r.biedert on 11 Jan 2011 at 11:39

  • Changed state: Accepted

from jspf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024

Original comment by r.biedert on 11 Jan 2011 at 11:39

from jspf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024

Appears to be a problem of VisualVM. In my test case, the app uses 100% CPU, 
VisualVM only reports 50%, but it clearly sees the "bigbang" thread eating all 
resources:

"Thread-18" daemon prio=5 tid=106afd000 nid=0x117f22000 runnable [117f20000]
   java.lang.Thread.State: RUNNABLE
    at sun.nio.cs.UTF_8.updatePositions(UTF_8.java:58)
    at sun.nio.cs.UTF_8$Encoder.encodeArrayLoop(UTF_8.java:392)
    at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:447)
    at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:544)
    at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:240)
    at java.lang.StringCoding.encode(StringCoding.java:272)
    at java.lang.StringCoding.encode(StringCoding.java:284)
    at java.lang.String.getBytes(String.java:986)
    at java.lang.ProcessEnvironment$Variable.valueOfQueryOnly(ProcessEnvironment.java:148)
    at java.lang.ProcessEnvironment$Variable.valueOfQueryOnly(ProcessEnvironment.java:144)
    at java.lang.ProcessEnvironment$StringEnvironment.get(ProcessEnvironment.java:223)
    at java.lang.ProcessEnvironment$StringEnvironment.get(ProcessEnvironment.java:205)
    at java.util.Collections$UnmodifiableMap.get(Collections.java:1282)
    at java.lang.ProcessEnvironment.getenv(ProcessEnvironment.java:68)
    at java.lang.System.getenv(System.java:847)
    at net.xeoh.plugins.testplugins.testannotations.impl.TestAnnotationsAbtractImpl.bigbang(TestAnnotationsAbtractImpl.java:108)
    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:597)
    at net.xeoh.plugins.base.impl.spawning.Spawner$2.run(Spawner.java:380)
    at java.lang.Thread.run(Thread.java:680)

Original comment by r.biedert on 11 Jan 2011 at 11:48

from jspf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Well, how do you profile then? Any advice?

Original comment by [email protected] on 11 Jan 2011 at 11:52

from jspf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Frankly, no idea. 

I played with VisualVM for some time now, and while it is able to see the 
actual thread, it does not take it into account for profiling. All in all, this 
looks like a VisualVM problem to me, not a JSPF one. 

Have you tried another profiler like YourKit? I once used their demo version on 
a JSPF project and it appeared to work without problems.  

Original comment by r.biedert on 11 Jan 2011 at 12:02

from jspf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Closed, does not appear to be a JSPF bug. Will be reopened in case we have new 
insights. 

Original comment by r.biedert on 24 Feb 2011 at 10:31

  • Changed state: Invalid

from jspf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.