Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
-Xloggc:file
Report on each garbage collection event, as with -verbose:gc, but log this data to file. In addition to the information -verbose:gc gives, each reported event will be preceeded by the time (in seconds) since the first garbage-collection event.
Always use a local file system for storage of this file to avoid stalling the JVM due to network latency. The file may be truncated in the case of a full file system and logging will continue on the truncated file. This option overrides -verbose:gc if both are given on the command line.
Please check you are using both the options. This probably is not the cause for the binary data in the file. But it is there so I highlighted it.
Secondly, I am still not sure how can you be so sure that these junk character will be there on the first line. For me these are gc logs and can be at any place.
Do you find any exception just above or below these junk character in the log file?
You can try invoking this java command on the command line to see what could be the probable exeception that is dumping these chars in the gc log file.
I'm not a java man, but doesn't this: -Xloggc:/project/gm.log mean you are logging the garbage collector? I do believe you need a special viewer to 'see' that data.
The Two Thread are different but the result will the same.
Thats what made me ask in different respect.
Anyway, I am trying to get help from experts in two different ways.
Guys !!!
What my main aim is to remove this first line with junk character.
I did attempted removing the line through script but couldnt make it happen.
It does disturb the logs provisioning.
But ASAP I copy it temporarily to a file , make changes and copy it back those characters again appear.
Seems that something has to be done with run.sh (==<< Main culprit).
Last edited by your_shadow03; 03-02-2010 at 11:11 AM.
Well,, I am not in corporate VPN..
Will surely give it try and let you know the status.
You can suggest me the other options too..if thats in your mind.
I have put the same query to Jboss Community too.
Lets see if it could be helpful.
- The first entry is not jboss/java specific (as stated before).
- Both entries seem to point to gm.log (the -Xloggc:/mc.com/gm.log in the JAVA_OPTS line).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.