how to change “eheap_alloc” size on windows system to run erlang server?

删除回忆录丶 提交于 2019-12-24 03:56:04

问题


How to change the "eheap_alloc" size on windows? This is for to do load test of erlang server with several number of clients. My server is running successfully up to 100 clients but if it is 200, server works two minutes with good results and then after server crashed and resulted with abnormal termination by showing

eheap_alloc: Cannot allocate 8414160 bytes of memory (of type "heap"). 

But in Linux it can work for all the clients successfully. How can I over come this problem?

help me some one....

thank you.


回答1:


Have you tried [1] ? erl +hms Size

Sets the default heap size of processes to the size Size.

erl +hmbs Size

Sets the default binary virtual heap size of processes to the size Size.

with different Sizes ? [1] http://www.erlang.org/doc/man/erl.html




回答2:


When you get this message there is probably some memory leak in you server even it works well at Linux. This can be some sort of "live lock" which locking you from release memory in some circumstances. So best what you can do is look better what eats memory in your server.



来源:https://stackoverflow.com/questions/4274121/how-to-change-eheap-alloc-size-on-windows-system-to-run-erlang-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!