You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/03/11 16:02:39 UTC

[GitHub] [skywalking] liuhaoXD opened a new issue #4496: Application will not quit after main() done

liuhaoXD opened a new issue #4496: Application will not quit after main() done
URL: https://github.com/apache/skywalking/issues/4496
 
 
   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [x] Question or discussion
   - [ ] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Question
   Here is the example, assume that we have a class `Hello` as defined here
   
   ```java
   public class Hello {
       public static void main(String[] args) {
           System.out.println("Hello, World!");
       }
   }
   ```
   
   after doing this
   
   ```bash
    java -javaagent:skywalking-agent.jar Hello
   ```
   we should got `Hello, World!` at terminal stdout, and then the application should quit with status code `0` (which means process quit without any errors)
   
   However, what I got is:
   1. the stdout is ok
   2. the application KEEPS RUNNING until I trigger `CTRL-C`.  
   
   Maybe it's a normal circumstance when some non-daemon background threads are still running, but it's still quite a wired phenomenon where the application has done it's work and keeps running without any response for common developer.
   ___
   ### Requirement or improvement
   - Please describe about your requirements or improvement suggestions.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng commented on issue #4496: Application will not quit after main() done

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4496: Application will not quit after main() done
URL: https://github.com/apache/skywalking/issues/4496#issuecomment-597979130
 
 
   I noticed this 
   ```
   
   "pool-1-thread-1" #12 prio=5 os_prio=0 tid=0x00007facf077b800 nid=0x15ae4 waiting on condition [0x00007facdaf71000]
      java.lang.Thread.State: WAITING (parking)
   	at sun.misc.Unsafe.park(Native Method)
   	- parking to wait for  <0x00000000e3f57810> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
   	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
   	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
   	at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
   	at org.apache.skywalking.apm.agent.core.commands.CommandService.run(CommandService.java:67)
   	at org.apache.skywalking.apm.util.RunnableWithExceptionProtection.run(RunnableWithExceptionProtection.java:36)
   	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   	at java.lang.Thread.run(Thread.java:745)
   
      Locked ownable synchronizers:
   	- <0x00000000e3f575e0> (a java.util.concurrent.ThreadPoolExecutor$Worker)
   ```
   
   But the strange is, `CommandService#shutdown` already has `executorService.shutdown();`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng edited a comment on issue #4496: Application will not quit after main() done

Posted by GitBox <gi...@apache.org>.
wu-sheng edited a comment on issue #4496: Application will not quit after main() done
URL: https://github.com/apache/skywalking/issues/4496#issuecomment-597729997
 
 
   Could you do Thread dump to find out which thread is there? Typically, the agent works for server.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] kezhenxu94 commented on issue #4496: Application will not quit after main() done

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #4496: Application will not quit after main() done
URL: https://github.com/apache/skywalking/issues/4496#issuecomment-598086119
 
 
   From my point of view, as an agent, all threads should be daemon? @wu-sheng 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] liuhaoXD commented on issue #4496: Application will not quit after main() done

Posted by GitBox <gi...@apache.org>.
liuhaoXD commented on issue #4496: Application will not quit after main() done
URL: https://github.com/apache/skywalking/issues/4496#issuecomment-597986364
 
 
   I did a test, actually it seems that `ServiceManager.INSTANCE.shutdown()` was not invoked, so did the `executorService.shutdown()` :
   
   ```java
           Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
               @Override public void run() {
                   System.out.println("skywalking agent shutting down");
                   ServiceManager.INSTANCE.shutdown();
                   System.out.println("skywalking agent shut down");
               }
           }, "skywalking service shutdown thread"));
   ```
   
   after I called `System.exit(0)` in enhanced Application explicitly, everything works well and the addShutdownHook was executed too.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng commented on issue #4496: Application will not quit after main() done

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4496: Application will not quit after main() done
URL: https://github.com/apache/skywalking/issues/4496#issuecomment-598118731
 
 
   @kezhenxu94 I agree. But I don't have time to review all right now.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng commented on issue #4496: Application will not quit after main() done

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4496: Application will not quit after main() done
URL: https://github.com/apache/skywalking/issues/4496#issuecomment-597729997
 
 
   Could you do Thread dump which thread is there? Typically, the agent works for server.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng commented on issue #4496: Application will not quit after main() done

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4496: Application will not quit after main() done
URL: https://github.com/apache/skywalking/issues/4496#issuecomment-597990999
 
 
   Yes. You should call exit in jre1.8+

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] liuhaoXD commented on issue #4496: Application will not quit after main() done

Posted by GitBox <gi...@apache.org>.
liuhaoXD commented on issue #4496: Application will not quit after main() done
URL: https://github.com/apache/skywalking/issues/4496#issuecomment-597975939
 
 
   Here is the full thread dump:
   
   ```
   Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode):
   
   "Attach Listener" #24 daemon prio=9 os_prio=0 tid=0x00007facbc001000 nid=0x15b46 waiting on condition [0x0000000000000000]
      java.lang.Thread.State: RUNNABLE
   
      Locked ownable synchronizers:
   	- None
   
   "grpc-default-worker-ELG-1-4" #22 daemon prio=5 os_prio=0 tid=0x00007facac232000 nid=0x15aed runnable [0x00007facd9a37000]
      java.lang.Thread.State: RUNNABLE
   	at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
   	at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)
   	at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93)
   	at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
   	- locked <0x00000000f9b863c8> (a org.apache.skywalking.apm.dependencies.io.netty.channel.nio.SelectedSelectionKeySet)
   	- locked <0x00000000f9b87430> (a java.util.Collections$UnmodifiableSet)
   	- locked <0x00000000f9b86330> (a sun.nio.ch.EPollSelectorImpl)
   	at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
   	at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)
   	at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:755)
   	at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:410)
   	at org.apache.skywalking.apm.dependencies.io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
   	at org.apache.skywalking.apm.dependencies.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   	at java.lang.Thread.run(Thread.java:745)
   
      Locked ownable synchronizers:
   	- None
   
   "grpc-default-worker-ELG-1-3" #21 daemon prio=5 os_prio=0 tid=0x00007faca40e4800 nid=0x15aec runnable [0x00007facd9b38000]
      java.lang.Thread.State: RUNNABLE
   	at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
   	at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)
   	at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93)
   	at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
   	- locked <0x00000000f9b94650> (a org.apache.skywalking.apm.dependencies.io.netty.channel.nio.SelectedSelectionKeySet)
   	- locked <0x00000000f9b95708> (a java.util.Collections$UnmodifiableSet)
   	- locked <0x00000000f9b94558> (a sun.nio.ch.EPollSelectorImpl)
   	at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
   	at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)
   	at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:755)
   	at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:410)
   	at org.apache.skywalking.apm.dependencies.io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
   	at org.apache.skywalking.apm.dependencies.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   	at java.lang.Thread.run(Thread.java:745)
   
      Locked ownable synchronizers:
   	- None
   
   "grpc-default-worker-ELG-1-2" #20 daemon prio=5 os_prio=0 tid=0x00007fac9c035000 nid=0x15aeb runnable [0x00007facda242000]
      java.lang.Thread.State: RUNNABLE
   	at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
   	at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)
   	at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93)
   	at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
   	- locked <0x00000000f9b9a658> (a org.apache.skywalking.apm.dependencies.io.netty.channel.nio.SelectedSelectionKeySet)
   	- locked <0x00000000f9b9b6c0> (a java.util.Collections$UnmodifiableSet)
   	- locked <0x00000000f9b9a5c0> (a sun.nio.ch.EPollSelectorImpl)
   	at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
   	at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)
   	at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:755)
   	at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:410)
   	at org.apache.skywalking.apm.dependencies.io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
   	at org.apache.skywalking.apm.dependencies.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   	at java.lang.Thread.run(Thread.java:745)
   
      Locked ownable synchronizers:
   	- None
   
   "grpc-default-worker-ELG-1-1" #18 daemon prio=5 os_prio=0 tid=0x00007fac9c02d800 nid=0x15ae9 runnable [0x00007facda444000]
      java.lang.Thread.State: RUNNABLE
   	at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
   	at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)
   	at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93)
   	at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
   	- locked <0x00000000f9b9fce8> (a org.apache.skywalking.apm.dependencies.io.netty.channel.nio.SelectedSelectionKeySet)
   	- locked <0x00000000f9ba10a0> (a java.util.Collections$UnmodifiableSet)
   	- locked <0x00000000f9b9fbf0> (a sun.nio.ch.EPollSelectorImpl)
   	at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
   	at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)
   	at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:755)
   	at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:410)
   	at org.apache.skywalking.apm.dependencies.io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
   	at org.apache.skywalking.apm.dependencies.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   	at java.lang.Thread.run(Thread.java:745)
   
      Locked ownable synchronizers:
   	- None
   
   "DestroyJavaVM" #17 prio=5 os_prio=0 tid=0x00007facf0009800 nid=0x15ad7 waiting on condition [0x0000000000000000]
      java.lang.Thread.State: RUNNABLE
   
      Locked ownable synchronizers:
   	- None
   
   "Service Thread" #16 daemon prio=9 os_prio=0 tid=0x00007facf0782800 nid=0x15ae7 runnable [0x0000000000000000]
      java.lang.Thread.State: RUNNABLE
   
      Locked ownable synchronizers:
   	- None
   
   "C1 CompilerThread1" #15 daemon prio=9 os_prio=0 tid=0x00007facf0780000 nid=0x15ae6 waiting on condition [0x0000000000000000]
      java.lang.Thread.State: RUNNABLE
   
      Locked ownable synchronizers:
   	- None
   
   "C2 CompilerThread0" #14 daemon prio=9 os_prio=0 tid=0x00007facf077e800 nid=0x15ae5 waiting on condition [0x0000000000000000]
      java.lang.Thread.State: RUNNABLE
   
      Locked ownable synchronizers:
   	- None
   
   "pool-1-thread-1" #12 prio=5 os_prio=0 tid=0x00007facf077b800 nid=0x15ae4 waiting on condition [0x00007facdaf71000]
      java.lang.Thread.State: WAITING (parking)
   	at sun.misc.Unsafe.park(Native Method)
   	- parking to wait for  <0x00000000e3f57810> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
   	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
   	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
   	at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
   	at org.apache.skywalking.apm.agent.core.commands.CommandService.run(CommandService.java:67)
   	at org.apache.skywalking.apm.util.RunnableWithExceptionProtection.run(RunnableWithExceptionProtection.java:36)
   	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   	at java.lang.Thread.run(Thread.java:745)
   
      Locked ownable synchronizers:
   	- <0x00000000e3f575e0> (a java.util.concurrent.ThreadPoolExecutor$Worker)
   
   "SkywalkingAgent-5-ServiceAndEndpointRegisterClient-0" #11 daemon prio=5 os_prio=0 tid=0x00007facf0779000 nid=0x15ae3 waiting on condition [0x00007facdb272000]
      java.lang.Thread.State: TIMED_WAITING (parking)
   	at sun.misc.Unsafe.park(Native Method)
   	- parking to wait for  <0x00000000e3f51938> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
   	at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
   	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
   	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
   	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
   	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   	at java.lang.Thread.run(Thread.java:745)
   
      Locked ownable synchronizers:
   	- None
   
   "SkywalkingAgent-4-JVMService-consume-0" #10 daemon prio=5 os_prio=0 tid=0x00007facf0777000 nid=0x15ae2 waiting on condition [0x00007facdb373000]
      java.lang.Thread.State: TIMED_WAITING (parking)
   	at sun.misc.Unsafe.park(Native Method)
   	- parking to wait for  <0x00000000e3f51378> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
   	at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
   	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
   	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
   	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
   	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   	at java.lang.Thread.run(Thread.java:745)
   
      Locked ownable synchronizers:
   	- None
   
   "SkywalkingAgent-3-JVMService-produce-0" #9 daemon prio=5 os_prio=0 tid=0x00007facf0775000 nid=0x15ae1 waiting on condition [0x00007facdb474000]
      java.lang.Thread.State: TIMED_WAITING (parking)
   	at sun.misc.Unsafe.park(Native Method)
   	- parking to wait for  <0x00000000e3f50de0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
   	at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
   	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
   	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
   	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
   	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   	at java.lang.Thread.run(Thread.java:745)
   
      Locked ownable synchronizers:
   	- None
   
   "SkywalkingAgent-2-GRPCChannelManager-0" #8 daemon prio=5 os_prio=0 tid=0x00007facf0773000 nid=0x15ae0 waiting on condition [0x00007facdb575000]
      java.lang.Thread.State: TIMED_WAITING (parking)
   	at sun.misc.Unsafe.park(Native Method)
   	- parking to wait for  <0x00000000e3f560f8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
   	at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
   	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
   	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
   	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
   	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   	at java.lang.Thread.run(Thread.java:745)
   
      Locked ownable synchronizers:
   	- None
   
   "DataCarrier.DEFAULT.Consumser.0.Thread" #7 daemon prio=5 os_prio=0 tid=0x00007facf0771800 nid=0x15adf sleeping[0x00007facdb676000]
      java.lang.Thread.State: TIMED_WAITING (sleeping)
   	at java.lang.Thread.sleep(Native Method)
   	at org.apache.skywalking.apm.commons.datacarrier.consumer.ConsumerThread.run(ConsumerThread.java:72)
   
      Locked ownable synchronizers:
   	- None
   
   "SkywalkingAgent-1-LogFileWriter-0" #6 daemon prio=5 os_prio=0 tid=0x00007facf0215000 nid=0x15ade waiting on condition [0x00007facdb7ac000]
      java.lang.Thread.State: TIMED_WAITING (parking)
   	at sun.misc.Unsafe.park(Native Method)
   	- parking to wait for  <0x00000000e3cc5060> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
   	at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
   	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
   	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
   	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
   	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   	at java.lang.Thread.run(Thread.java:745)
   
      Locked ownable synchronizers:
   	- None
   
   "Signal Dispatcher" #4 daemon prio=9 os_prio=0 tid=0x00007facf0139800 nid=0x15add runnable [0x0000000000000000]
      java.lang.Thread.State: RUNNABLE
   
      Locked ownable synchronizers:
   	- None
   
   "Finalizer" #3 daemon prio=8 os_prio=0 tid=0x00007facf0107000 nid=0x15adc in Object.wait() [0x00007facdbaf9000]
      java.lang.Thread.State: WAITING (on object monitor)
   	at java.lang.Object.wait(Native Method)
   	- waiting on <0x00000000e3bb5700> (a java.lang.ref.ReferenceQueue$Lock)
   	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
   	- locked <0x00000000e3bb5700> (a java.lang.ref.ReferenceQueue$Lock)
   	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
   	at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)
   
      Locked ownable synchronizers:
   	- None
   
   "Reference Handler" #2 daemon prio=10 os_prio=0 tid=0x00007facf0102000 nid=0x15adb in Object.wait() [0x00007facdbbfa000]
      java.lang.Thread.State: WAITING (on object monitor)
   	at java.lang.Object.wait(Native Method)
   	- waiting on <0x00000000e3bbbd48> (a java.lang.ref.Reference$Lock)
   	at java.lang.Object.wait(Object.java:502)
   	at java.lang.ref.Reference.tryHandlePending(Reference.java:191)
   	- locked <0x00000000e3bbbd48> (a java.lang.ref.Reference$Lock)
   	at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)
   
      Locked ownable synchronizers:
   	- None
   
   "VM Thread" os_prio=0 tid=0x00007facf00fa800 nid=0x15ada runnable 
   
   "GC task thread#0 (ParallelGC)" os_prio=0 tid=0x00007facf001e800 nid=0x15ad8 runnable 
   
   "GC task thread#1 (ParallelGC)" os_prio=0 tid=0x00007facf0020800 nid=0x15ad9 runnable 
   
   "VM Periodic Task Thread" os_prio=0 tid=0x00007facf0786000 nid=0x15ae8 waiting on condition 
   
   JNI global references: 276
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng closed issue #4496: Application will not quit after main() done

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #4496: Application will not quit after main() done
URL: https://github.com/apache/skywalking/issues/4496
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services