LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-02-2010, 08:20 AM   #31
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51

My run.conf says:
Code:
JAVA_OPTS="-server -XX:PermSize=128m -XX:MaxPermSize=256m -XX:-PrintTenuringDistribution -XX:NewSize=256m -XX:MaxNewSize=384m -XX:+UseParallelGC -XX:SurvivorRatio=12 -Xmx1280m -Xms1280m -XX:ThreadStackSize=256 -XX:+DisableExplicitGC -verbose:gc -XX:+PrintGCDetails  -XX:+PrintTenuringDistribution -XX:ParallelGCThreads=2 -Xloggc:/project/gm.log -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true"
 
Old 03-02-2010, 08:43 AM   #32
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Rep: Reputation: 58
Code:
JAVA_OPTS="-server -XX:PermSize=128m -XX:MaxPermSize=256m -XX:-PrintTenuringDistribution -XX:NewSize=256m -XX:MaxNewSize=384m -XX:+UseParallelGC -XX:SurvivorRatio=12 -Xmx1280m -Xms1280m -XX:ThreadStackSize=256 -XX:+DisableExplicitGC -verbose:gc -XX:+PrintGCDetails  -XX:+PrintTenuringDistribution -XX:ParallelGCThreads=2 -Xloggc:/project/gm.log -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true"
Quote:
-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.
 
Old 03-02-2010, 08:46 AM   #33
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

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.

A quick search comes up with GCView (freshmeat).

Hope this helps.
 
Old 03-02-2010, 11:45 AM   #34
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Can anyone confirm the same as I am not sure if that could be the reason.
What entry I should make to the file?
 
Old 03-02-2010, 11:49 AM   #35
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
your_shadow03,

I've yet again merged two of your threads on the same subject; you've
been warned for double-/ multi-posts so many times it's not even funny.

Next double post of yours I'll give you an out-time of a few weeks.



Cheers,
Tink
 
Old 03-02-2010, 12:04 PM   #36
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Sorry Moderator,

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.

anyway, will take care for next time.
 
Old 03-02-2010, 12:10 PM   #37
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
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 12:11 PM.
 
Old 03-02-2010, 12:34 PM   #38
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

I've re-read most of the merged thread and see one thing that I cannot place:

You (the OP) mention that the following line is in your run.conf file:

CustomLog "| /usr/sbin/logrotate /mc.com/gm.log 60" common

Should that be there? To my knowledge that entry isn't jboss specific (looks more like apache/tomcat).

Hope this helps.
 
Old 03-02-2010, 12:53 PM   #39
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I dont think it should affect the logs being provisioned as binary format.
 
Old 03-02-2010, 01:02 PM   #40
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

Have you actually tried to remove it.
 
Old 03-02-2010, 01:15 PM   #41
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
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.
 
Old 03-03-2010, 08:15 AM   #42
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I tried it now..
It's not provisioning this time since that is only entry in run.conf.
Removing it from the file will not provision the logs.
 
Old 03-03-2010, 08:26 AM   #43
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

It is the only entry?? I doubt it. This was provided by you in post #8 as being the content of run.conf:
Quote:
CustomLog "| /usr/sbin/logrotate /mc.com/gm.log 60" common

JAVA_OPTS="-server -XX:PermSize=128m -XX:MaxPermSize=256m -XX:-PrintTenuringDistribution -XX:NewSize=256m -XX:MaxNewSize=384m -XX:+UseParallelGC -XX:SurvivorRatio=12 -Xmx1280m -Xms1280m -XX:ThreadStackSize=256 -XX:+DisableExplicitGC -verbose:gc -XX:+PrintGCDetails -XX:+PrintTenuringDistribution -XX:ParallelGCThreads=2 -Xloggc:/mc.com/gm.log -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true"
- 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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash scripting: parsing a text file character-by-character Completely Clueless Programming 13 08-12-2009 10:07 AM
Adding date and time to a log file ltodd2 Linux - General 2 12-17-2008 11:05 AM
Adding the character "#" in a file using sed kushalkoolwal Programming 4 07-11-2008 03:59 PM
incorrect character for the log file treotan Red Hat 1 12-05-2005 10:21 PM
access.log (squid) file, adding Logins mizard Linux - Networking 4 09-27-2005 08:45 AM


All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration