Results 1 to 4 of 4
Hi! All,
Iam running jboss on rhel 5.4. I have 2 instances namely (jboss and mms) of jboss.
The server.log file for both the instances is under the log folder ...
- 01-31-2011 #1Just Joined!
- Join Date
- Jan 2011
- Posts
- 7
Strange problem with jboss!
Hi! All,
Iam running jboss on rhel 5.4. I have 2 instances namely (jboss and mms) of jboss.
The server.log file for both the instances is under the log folder and is being rotated and cleaned up as required.
However, Jboss is writing another file "jboss_console" onto /tmp directory. The contents on jboss_console are the same as the server.log for the jboss instance.
I delete the file but it doesnt release the disk space. I manually have to restart jboss instance and then the space is reclaimed by OS.
I need help with 2 of my questions:
1) What is jboss_console file and how to get rid of it?
2) If its a must to keep it - how can I relocated it to diff directory, and also why is it not creating a similar file for my other instance mms?
Appreciate some wuick help.
Many thanks
Hugo
- 02-02-2011 #2Just Joined!
- Join Date
- Jan 2011
- Posts
- 7
Appreciate some quick help here...........please.............
- 02-02-2011 #3
I need help with 2 of my questions:
1) What is jboss_console file and how to get rid of it?
2) If its a must to keep it - how can I relocated it to diff directory, and also why is it not creating a similar file for my other instance mms?
1) No idea
2) No idea
a quick fix to clear space is to run
cat /dev/null > /tmp/jboss_console
this will clear the space, and reclaim the disk space. I'm not going to go in depth on why this works, but basically deleting a file only removes the inode list in the directory. If an application still has a handle on it, it won't release the space. Since it's gone from the filesystem, you can't take any action on it, forcing you to restart the app.
the method I put, keeps the link, it just wipes the file's data (kinda, the data still exists on the disk, the blocks are just marked as no longer in use, and are available for overwriting.)New to the internet, technical forums, or the hacker / open source community??
Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html
RHCE for RHEL version 5
RHCT for RHEL version 4
- 02-02-2011 #4Just Joined!
- Join Date
- Jan 2011
- Posts
- 7
Many thanks meton_magis for your reply.
I did as you mentioned, got the space back.
I also changed the file to ready only - so nothing is being written and the /tmp is safe as of now.
Appreciate your quick fix.
Hugo


Reply With Quote