Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Java will use as much memory as you give it. Higher heap size is better for performance up to around 32GB. For most Java apps you can limit heap to 256M or less with little consequence.

AFAIK Java uses less ram than Python and JavaScript, only common languages that beat it are Golang and C/C++



And memory used will be hopefully quite lower with value types, coming sometime in the future:

http://www.jesperdj.com/2015/10/04/project-valhalla-value-ty...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: