Home > Mobile >  Insufficent space for shared memory file when i try the run command on eclipse
Insufficent space for shared memory file when i try the run command on eclipse

Time:07-15

when i run the command "mvn clean package spring-boot:run" i get this error:

OpenJdk 64-Bit Server VM warning: Insufficent space for shared memory file: 3362281 Try using the -Djava.io.tmpdir= option to select an alternate temp location.

I have used this command in the past week a lot of time and it always worked.

This is the output of the Df -h command:

Filesystem                 Size  Used Avail Use% Mounted on
tmpfs                      1,6G  1,9M  1,6G   1% /run
/dev/mapper/vgubuntu-root   19G   18G     0 100% /
tmpfs                      7,9G   44M  7,8G   1% /dev/shm
tmpfs                      5,0M     0  5,0M   0% /run/lock
/dev/sda2                  512M  5,3M  507M   2% /boot/efi
tmpfs                      1,6G  2,4M  1,6G   1% /run/user/1000

I understand it's a problem of memory but i'm not sure what folder i should delete/modify. In this project there a lot of dependency so i don't want to delete some folder that i need to run the project. Can you help me?

CodePudding user response:

Free some space at /dev/mapper/vgubuntu-root and it will work. Seems that your FS is full.

CodePudding user response:

Your disk is full; nothing (directly) to do with eclipse or Java.

I note that your main disk is 19G, which is small by today's standards; I assume this is not your laptop or desktop, but rather a machine in the cloud or a virtual machine (VM).

Depending on your situation, you have two general options:

  • Reduce the amount of space you use, by deleting or moving files that you do not need — not in the system area, but in your own directories.

    You can also uninstall applications you don't need, using the package manager; however, on a small machine like this, I imagine you haven't installed anything superfluous.

  • Increase the amount of space available; if it's a machine in the cloud or a virtual machine, you can do this by changing the configuration. The exact procedure depends on which cloud or which virtual machine technology.

    If it's in the cloud, increasing the disk size will increase the cost; you will need to check whether the resulting amount is acceptable.

  • Related