Home > other >  About spring boot spring cloud service projects, will run for a period of time to the Java heap spac
About spring boot spring cloud service projects, will run for a period of time to the Java heap spac

Time:10-24



Business code would only write four years of development, the distributed high concurrency also can't be a programmer? ->>


The beginning is augmenting the JVM but still happen;

The error log:

Java. Util. Concurrent. TimeoutException: null
At Java. Util. Concurrent. FutureTask. Get (205) FutureTask. Java:
At com.net flix. Discovery. TimedSupervisorTask. Run (TimedSupervisorTask. Java: 63)
The at Java. Util. Concurrent. Executors $RunnableAdapter. Call (511) Executors. Java:
The at Java. Util. Concurrent. FutureTask. Run (FutureTask. Java: 266)
The at Java. Util. Concurrent. ScheduledThreadPoolExecutor $ScheduledFutureTask. Access the $201 (180) ScheduledThreadPoolExecutor. Java:
The at Java. Util. Concurrent. ScheduledThreadPoolExecutor $ScheduledFutureTask. Run (ScheduledThreadPoolExecutor. Java: 293)
The at Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1142)
The at Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 617)
The at Java. Lang. Thread. The run (Thread. Java: 745)
The 2019-05-30 09:27:58. 11-186 ERROR [DiscoveryClient - 0] C.N.D iscovery. TimedSupervisorTask: task supervisor timed out
Java. Util. Concurrent. TimeoutException: null
At Java. Util. Concurrent. FutureTask. Get (205) FutureTask. Java:
At com.net flix. Discovery. TimedSupervisorTask. Run (TimedSupervisorTask. Java: 63)
The at Java. Util. Concurrent. Executors $RunnableAdapter. Call (511) Executors. Java:
The at Java. Util. Concurrent. FutureTask. Run (FutureTask. Java: 266)
The at Java. Util. Concurrent. ScheduledThreadPoolExecutor $ScheduledFutureTask. Access the $201 (180) ScheduledThreadPoolExecutor. Java:
The at Java. Util. Concurrent. ScheduledThreadPoolExecutor $ScheduledFutureTask. Run (ScheduledThreadPoolExecutor. Java: 293)
The at Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1142)
The at Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 617)
The at Java. Lang. Thread. The run (Thread. Java: 745)
The 2019-05-30 09:28:45. 11-463 ERROR [DiscoveryClient - 1] C.N.D iscovery. TimedSupervisorTask: task supervisor timed out
Java. Util. Concurrent. TimeoutException: null
At Java. Util. Concurrent. FutureTask. Get (205) FutureTask. Java:
At com.net flix. Discovery. TimedSupervisorTask. Run (TimedSupervisorTask. Java: 63)
The at Java. Util. Concurrent. Executors $RunnableAdapter. Call (511) Executors. Java:
The at Java. Util. Concurrent. FutureTask. Run (FutureTask. Java: 266)
The at Java. Util. Concurrent. ScheduledThreadPoolExecutor $ScheduledFutureTask. Access the $201 (180) ScheduledThreadPoolExecutor. Java:
The at Java. Util. Concurrent. ScheduledThreadPoolExecutor $ScheduledFutureTask. Run (ScheduledThreadPoolExecutor. Java: 293)
The at Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1142)
The at Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 617)
The at Java. Lang. Thread. The run (Thread. Java: 745)
The 2019-05-30 09:28:57. 11-256 INFO [AsyncResolver - the bootstrap - executor - 0] C.N.D.S.R.A ws. ConfigClusterResolver: Resolving eureka endpoints via the configuration
The 2019-05-30 09:28:59. 11-374 ERROR [DiscoveryClient CacheRefreshExecutor - 0] c.net flix. Discovery. DiscoveryClient: DiscoveryClient_VANGO - PSO - V1/vango - PSO: 0:34 dc458f7f1e10d5f90cf01c23047-160 was unable to refresh its cache! Status=Java heap space
Java. Lang. OutOfMemoryError: Java heap space

CodePudding user response:


Oom, memory consumption, the Jvm startup add a printgc look at what is depleted, adjust memory temporarily startup bigger
Java - Xms2g - Xmx4g - like this jar

CodePudding user response:


When you're using plan tasks performed not closing threads (not) be returned to the thread pool?

CodePudding user response:


- XX: + HeapDumpOnOutOfMemoryError
At the time of memory save memory snapshot, and then to analyze and see what's causing the oom,

CodePudding user response:


To find out why, is because the application requires more resources, the allocation of less, or the code has a memory leak problem,

CodePudding user response:

Could you tell me how to solve the original poster is, I recently also encounter this problem
  • Related