how to change “eheap_alloc” size on windows system

2019-07-16 00:50发布

问题:

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.



标签: erlang