My app is constantly running Full GC!

后端 未结 3 1548
清酒与你
清酒与你 2021-02-06 06:51

I am a newbie at performance tuning applications and figuring out the workings of GC so probably asking the same question a millionth time!

The problem is that 2 - 3 wee

3条回答
  •  囚心锁ツ
    2021-02-06 07:14

    Somewhere your code is creating temporary objects in an memory- less environment.
    Please look at your code (HibernateCommentaryDao.java) 
    
    it is something with n+1 fetch
    

    Excessive GC Time and OutOfMemoryError

    The parallel collector will throw an OutOfMemoryError if too much time is being spent in garbage collection: if more than 98% of the total time is spent in garbage collection and less than 2% of the heap is recovered, an OutOfMemoryError will be thrown. This feature is designed to prevent applications from running for an extended period of time while making little or no progress because the heap is too small. If necessary, this feature can be disabled by adding the option -XX:-UseGCOverheadLimit to the command line

提交回复
热议问题