|
From: Jakob E. <jak...@gm...> - 2011-05-26 06:26:52
|
Hi, We are using the tanuki wrapper together with TCserver/tomcat and want to have -verbose:gc to the wrapper log. We used to log to specific file but this was overwritten during every jvm restart. Somewhat explained in this post, http://stackoverflow.com/questions/3822097/rolling-garbage-collector-logs-in-java. But now we are facing another problem. The wrapper-log is sometimes adding new lines in the middle of a gc log statement. Is this a flush issue? How can I prevent this in the wrapper log? INFO | jvm 1 | 2011/05/26 04:49:22 | [GC 1868705K->610204K(6134208K), 0.0062318 secs] INFO | jvm 1 | 2011/05/26 04:51:04 | [GC 1868572K->610487K(6134208K), 0.0055004 secs] INFO | jvm 1 | 2011/05/26 04:53:03 | [GC 1868855K->610658K(6134208K), 0.0042818 secs] INFO | jvm 1 | 2011/05/26 04:54:21 | [GC 1869026K->610890K(6134208K), 0.0049682 secs] INFO | jvm 1 | 2011/05/26 04:55:36 | [GC 1869258K->611066K(6134208K), 0.0054197 secs] INFO | jvm 1 | 2011/05/26 04:56:45 | [GC 1869434K->611094K(6134208K), 0.0041137 secs] INFO | jvm 1 | 2011/05/26 04:57:48 | [GC INFO | jvm 1 | 2011/05/26 04:57:48 | 1869462K->611304K(6134208K), 0.0060016 secs] INFO | jvm 1 | 2011/05/26 04:58:46 | [GC INFO | jvm 1 | 2011/05/26 04:58:46 | 1869672K->610972K(6134208K), 0.0053010 secs] INFO | jvm 1 | 2011/05/26 04:59:59 | [GC 1869340K->611257K(6134208K), 0.0040952 secs] INFO | jvm 1 | 2011/05/26 05:01:28 | [GC 1869625K->612006K(6134208K), 0.0079602 secs] INFO | jvm 1 | 2011/05/26 05:03:00 | [GC 1870374K->612103K(6134208K), 0.0053934 secs] If logging to a specific file, result looks like this. No new lines! 0.853: [GC 2405K(6134208K), 0.0003878 secs] 16.915: [GC 1260773K->62176K(6134208K), 0.0711920 secs] 21.357: [GC 637590K(6134208K), 0.4003372 secs] 26.548: [GC 1320507K->110141K(6134208K), 0.0879849 secs] 30.754: [GC 722976K(6134208K), 0.5191931 secs] 33.719: [GC 1368509K->137204K(6134208K), 0.2726067 secs] We are running Windows 2008 server R2. Regards, Jakob |