Home > Back-end >  The JVM to run after a period of time without response to feign death
The JVM to run after a period of time without response to feign death

Time:05-27

I have a Java project, but not on a regular basis will be dead,
After performing the jmap - F, the system automatically restored,
I have also performs jstack, also must use the -f, to get the file all the thread is blocked, and no deadlocks or wait for some resources, perform the jstack -f, system can automatically recover,


PC PU OC OU YGC FGC FGCT GCT
44 0 0.000 1.742 262144.0 159521.7 4194304.0 329202.4

Great god help solve the trouble

CodePudding user response:

Is there a memory leak, the system resources are running out,

CodePudding user response:

reference 1st floor oyljerry response:
is there a memory leak, the system resources are exhausted,

See the memory usage is normal, no memory leaks

CodePudding user response:

Jvisualvm see thread state

CodePudding user response:

Also have encountered this kind of situation, location problem is time consuming, if the JVM found no abnormalities, can consider the following situation:
1. Call the need to BLOCK the function, such as Object# wait, wait for led to the software hangs,
2. Call the other servers or large files without return, such as InputStream# read, Channel# read operations, such as lead to software hangs,
3. Memory allocation is not enough, and the actual memory consumption is too high, cause the software hangs,
4. Build log system, in order to debug the problem, each thread can be output to a different log file, each cycle print log, look at the last stop log where,
5. Is it system problem? Although the possibility is very small, and on many Linux/Windows operating system is running very well, but does not rule out some small operating system, JVM abnormal
Good luck!

CodePudding user response:

Hello, hello, I have appeared in the similar problems with you, do you find out why

CodePudding user response:

I also met, my side has a few situations:
1, I will not use other JAVA framework, if used in accordance with the will,
2, the same code, the same CLASS, is not even a recompile CLASS, until I run time, colleagues said he hadn't met,
Before only 3, I do not know whether JDK1.8, anyway never encountered before 1, 7,
4, meet card dead, as long as in the console press enter with respect to OK, then, without any tools,
  • Related