Jan 27, 2015

Maven indexing in Netbeans filled up my /tmp and therefore the RAM/SWAP of my Linuxbox.

NetBeans can be configured to index maven repositories.



During the index phase the data is stored in a temp. directory, which was
on my Fedora box in /tmp/nexus...

This got very huge and used a whole lot of memory which increased the
SWAP usage.

To prevent the usage, I redirected the java tmp directory in
<netbeans>/etc/netbeans.conf by using the start parameter:

-J-Djava.io.tmpdir=/var/tmp
 
 
and set the tmpdir to /var/tmp and after this the memory pressure  is gone.