1

I have just noticed there is no space available in my server, therefore I need to remove something.

It seems the /opt/jboss-6.1.0 directory is taking more than 200Gb (unbelievable).

I would like to remove it, but I am not sure if the server is using jBoss (I don't even know what it is). How can I understand if removing this folder will cause problems to the server? (I know we are using Apache Web Server)

I have checked processes with: ps aux | grep jboss but nothing is found.

  • 1
    probably using it, probably logs that can be cleaned up. Do not erase the entire directory – Rui F Ribeiro Oct 28 '16 at 10:00
  • 1
    You are right! the logs are taking all the space!! Thank you so much – MeV Oct 28 '16 at 10:06
  • Which is the log directory? – Rui F Ribeiro Oct 28 '16 at 10:10
  • 1
    /opt/jboss-6.1.0/server/all/log – MeV Oct 28 '16 at 10:11
2

JBoss is an application server, a framework for running Java-based applications/servlets. So basically erasing that /opt/jboss-xxx most certainly means deleting the entire application (depending on the configuration of your server)

see JBoss Enterprise Application Platform

JBoss is probably running, and as more than usual, you have it full of logs. Application servers also need to have regular scrubbing and maintenance, specially when it comes to logs grooming (log rotation configured, or cron jobs cleaning it up).

Your ps/grep command may not have worked because grep is case sensitive. I would recommend:

ps -uax | egrep -i "jboss|java"

The JBoss process might also be dead because logging space is exhausted.

As for logs, I would recommend a regular cron job, cleaning up logs with more than 2 months (60 days actually), as in:

find /opt/jboss-6.1.0/server/all/log -type f -mtime +60 -exec rm {} \;

Relevant link:

Delete Files Older Than x Days on Linux

Disclaimer: such log scrubbing should be part of a policy of regular backups.

  • 1
    amazing, thank you so much for your help! very clear – MeV Oct 28 '16 at 10:20
  • 1
    The answer failed to explain what JBoss is, corrected. – Rui F Ribeiro Oct 28 '16 at 10:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.