Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

increase memory

$
0
0
        Runtime rt = Runtime.getRuntime();        long totalMem = rt.totalMemory();        long maxMem = rt.maxMemory();        long freeMem = rt.freeMemory();        double megs = 1048576.0;         System.out.println ("Total Memory: " + totalMem + " (" + (totalMem/megs) + " MiB)");        System.out.println ("Max Memory:   " + maxMem + " (" + (maxMem/megs) + " MiB)");        System.out.println ("Free Memory:  " + freeMem + " (" + (freeMem/megs) + " MiB)");

 

If i run the above i get:

 

Total Memory: 85000192 (81.0625 MiB)

Max Memory:   129957888 (123.9375 MiB)

Free Memory:  76973192 (73.40735626220703 MiB)

 

If i run the same in processing, a very limited pde i get:

 

Total Memory: 65011712 (62.0 MiB)

Max Memory:   1908932608 (1820.5 MiB)

Free Memory:  57761176 (55.085350036621094 MiB)

 

Now how can i increase the available memory?

 

I tried so many things, in intelliJ i get:

 

Exception in thread "Animation Thread" java.lang.OutOfMemoryError: Java heap space

 

please help


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>