> From: Andri Herumurti [mailto:[EMAIL PROTECTED] > Subject: RE: [OT] ParallelGCThreads more than cpu count > > is there any weakness if i setting like that?
There will be some potential of extra overhead due to unnecessary switching and lock contention, but I would expect the effect to be rather minor (haven't measured it). Since garbage collection is CPU-bound activity (no I/O - other than possible paging - and limited lock contention), there's no real advantage to having more GC threads than CPUs. When UseParallelGC is enabled, the default number of GC threads in a HotSpot JVM is the number of CPUs for 8 or less processors, and 3 plus 5/8 of the number of CPUs for larger systems. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]