This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Profiled VM is not terminated when instrumented memory profiling is used. The following exception is printed to profiled VM console and VM is not terminated. Profiler Agent: Connection with agent closed Profiler Agent Error: Exception when trying to send response or command to client: java.net.SocketException: Socket closed java.net.SocketException: Socket closed at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:116) at java.net.SocketOutputStream.write(SocketOutputStream.java:153) at java.io.ObjectOutputStream$BlockDataOutputStream.writeBlockHeader(ObjectOutputStream.java:1890) at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1875) at java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputStream.java:1822) at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:719) at org.netbeans.lib.profiler.wireprotocol.WireIO.sendComplexCommand(WireIO.java:314) at org.netbeans.lib.profiler.server.ProfilerServer.sendComplexCmdToClient(ProfilerServer.java:714) at org.netbeans.lib.profiler.server.ProfilerInterface.firstTimeVMObjectAlloc(ProfilerInterface.java:1174) at org.netbeans.lib.profiler.server.ProfilerInterface.access$1800(ProfilerInterface.java:74) at org.netbeans.lib.profiler.server.ProfilerInterface$1.handleFirstTimeVMObjectAlloc(ProfilerInterface.java:597) at org.netbeans.lib.profiler.server.ProfilerRuntimeMemory.getClassId(ProfilerRuntimeMemory.java:201) at org.netbeans.lib.profiler.server.ProfilerRuntimeObjAlloc.traceObjAlloc(ProfilerRuntimeObjAlloc.java:120) at java.lang.Object.<init>(Object.java:37) at java.util.AbstractCollection.<init>(AbstractCollection.java:66) at java.util.AbstractSet.<init>(AbstractSet.java:63) at java.util.LinkedHashMap$LinkedKeySet.<init>(LinkedHashMap.java:539) at java.util.LinkedHashMap.keySet(LinkedHashMap.java:533) at java.util.HashSet.iterator(HashSet.java:172) at java.util.AbstractCollection.toArray(AbstractCollection.java:137) at java.util.ArrayList.<init>(ArrayList.java:177) at java.io.DeleteOnExitHook.runHooks(DeleteOnExitHook.java:74) at java.io.DeleteOnExitHook$1.run(DeleteOnExitHook.java:49) at java.lang.Shutdown.runHooks(Shutdown.java:123) at java.lang.Shutdown.sequence(Shutdown.java:167) at java.lang.Shutdown.shutdown(Shutdown.java:234) Profiler Agent: Connection with agent closed Profiler Agent: Connection with agent closed
Fixed in profiler-main changeset: 301481:06e46030adb3 user: Tomas Hurka <thurka@netbeans.org> date: Thu Nov 03 17:44:11 2016 +0100 summary: bugfix #268808, disable profiling in cleanupOnShutdown()
Integrated into 'main-silver', will be available in build *201611050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/06e46030adb3 User: Tomas Hurka <thurka@netbeans.org> Log: bugfix #268808, disable profiling in cleanupOnShutdown()