19

I've been doing jmeter tests and have had a few OutOfMemoryExceptions, so I've bumped up the heap memory in JMeter. But now it seems I can't run anymore tests as it says I'm using 94.9% of 14Gb.

When I use df -h it says dev/sda1 is full

I was wondering if anyone can help me? I think it has to do with the JVM from the jmeter

1

4 Answers 4

19

Start by tracking down where the excess usage is being stored. If you have no idea, start from the mountpoint for /dev/sda1:

mount | grep sda1

Use the du command. If /dev/sda1 is mounted on / ("root"):

du --max-depth=1 --human-readable / | sort --human-numeric-sort

This will list the first level of directories contained in the specified path, in order from smallest to largest. You can increase the depth past 1 to get details of the subdirectories, or change the path to specify a single directory. You can also use the short flags.

For instance, if your username is ubuntu and you want to inspect your home directory:

du -d1 -h /home/ubuntu | sort -h
2
  • The correct answer is in @Takkat's comment above: askubuntu.com/questions/89710/… Jan 13, 2015 at 13:52
  • 2
    Takkat's comment refers to having a separate boot partition that gets full, which was not the case here. My answer is a general approach to determine where space is consumed on any full partition. Aug 11, 2018 at 4:27
2

My culprit is almost always docker (can get bloated when I test multiple applications). If anyone else also experiences similar problems, a deep cleaning with docker system prune -a could help.

0

In some cases, it could be coming from Jenkins or Docker. To solve that, you should clean Jenkings logs and set it's size.

0

In my case, running the command

sudo apt autoremove

solved the problem.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .