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.

Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227
MeV
  • 131
  • 1
  • 5

1 Answers1

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.

Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227