Skip to main content

I am currently running an application which requires a maximum heap size of 16GB.

Currently I use the following flags to handle garbage collection.

-XX:+UseParNewGC, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=50, -XX:+DisableExplicitGC, -XX:+PrintGCDateStamps, -XX:+PrintGCDetails, -Xloggc:/home/user/logs/gc.log

-XX\:+UseParNewGC, -XX\:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=50, -XX\:+DisableExplicitGC, -XX\:+PrintGCDateStamps, -XX\:+PrintGCDetails, -Xloggc\:/home/user/logs/gc.log 

However, I have noticed that during some garbage collections, the application locks up for a few seconds and then carries on - This is completely unacceptable as it's a game server.

An exert from my garbage collection logs can be found below:

http://pastebin.com/5kxEmf1dhere.

Any advice on what I should change in order to reduce these long pauses would be greatly appreciated.

I am currently running an application which requires a maximum heap size of 16GB.

Currently I use the following flags to handle garbage collection.

-XX:+UseParNewGC, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=50, -XX:+DisableExplicitGC, -XX:+PrintGCDateStamps, -XX:+PrintGCDetails, -Xloggc:/home/user/logs/gc.log

However, I have noticed that during some garbage collections, the application locks up for a few seconds and then carries on - This is completely unacceptable as it's a game server.

An exert from my garbage collection logs can be found below:

http://pastebin.com/5kxEmf1d

Any advice on what I should change in order to reduce these long pauses would be greatly appreciated.

I am currently running an application which requires a maximum heap size of 16GB.

Currently I use the following flags to handle garbage collection.

-XX\:+UseParNewGC, -XX\:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=50, -XX\:+DisableExplicitGC, -XX\:+PrintGCDateStamps, -XX\:+PrintGCDetails, -Xloggc\:/home/user/logs/gc.log 

However, I have noticed that during some garbage collections, the application locks up for a few seconds and then carries on - This is completely unacceptable as it's a game server.

An exert from my garbage collection logs can be found here.

Any advice on what I should change in order to reduce these long pauses would be greatly appreciated.

edited tags
Link
Mysticial
  • 472.8k
  • 46
  • 343
  • 337
edited body
Source Link
Gontroller
  • 117
  • 2
  • 5

I am currently running an application which requires a maximum heap size of 16GB.

Currently I use the following flags to handle garbage collection.

-XX:+UseParNewGC, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=50, -XX:+DisableExplicitGC, -XX:+PrintGCDateStamps, -XX:+PrintGCDetails, -Xloggc:/home/user/logs/gc.log

However, I have noticed that during some garbage collections, the application locks up for a few seconds and then carries on - This is completely unacceptable as it's a game server.

An exert from my garbage collection logs can be found below:

http://pastebin.com/5kxEmf1d

Any adviseadvice on what I should change in order to reduce these long pauses would be greatly appreciated.

I am currently running an application which requires a maximum heap size of 16GB.

Currently I use the following flags to handle garbage collection.

-XX:+UseParNewGC, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=50, -XX:+DisableExplicitGC, -XX:+PrintGCDateStamps, -XX:+PrintGCDetails, -Xloggc:/home/user/logs/gc.log

However, I have noticed that during some garbage collections, the application locks up for a few seconds and then carries on - This is completely unacceptable as it's a game server.

An exert from my garbage collection logs can be found below:

http://pastebin.com/5kxEmf1d

Any advise on what I should change in order to reduce these long pauses would be greatly appreciated.

I am currently running an application which requires a maximum heap size of 16GB.

Currently I use the following flags to handle garbage collection.

-XX:+UseParNewGC, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=50, -XX:+DisableExplicitGC, -XX:+PrintGCDateStamps, -XX:+PrintGCDetails, -Xloggc:/home/user/logs/gc.log

However, I have noticed that during some garbage collections, the application locks up for a few seconds and then carries on - This is completely unacceptable as it's a game server.

An exert from my garbage collection logs can be found below:

http://pastebin.com/5kxEmf1d

Any advice on what I should change in order to reduce these long pauses would be greatly appreciated.

Removed thanks
Source Link
AndreyAkinshin
  • 19.2k
  • 29
  • 100
  • 158
Loading
Source Link
Gontroller
  • 117
  • 2
  • 5
Loading