简体   繁体   中英

GC_CONCURRENT running non-stop

I see the following in my cmd window when using adb logcat GC_CONCURRENT_logcat

Is this indicative of a memory leak? My assumption is that java garbage collection is running continuously, but I'm not sure. Any clarification is welcome!

Is this indicative of a memory leak?

The best test is to see how much memory is used after a GC. As you can see it starts at 36% and finishes at 36% so if there is a leak it is pretty small.

More likely you are;

  • allocating too fast
  • not using enough heap
  • not GCing as much as you think. ie do you know this is a problem?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM