如何更改“eheap_alloc” windows系统上运行erlang服务器的大小?
如何更改 Windows 上的“eheap_alloc”大小?这是为了对具有多个客户端的 erlang 服务器进行负载测试。我的服务器成功运行了最多 100 个客户端,但如果是 200 个客户端,服务器工作两分钟并获得良好结果,然后在服务器崩溃并导致异常终止后,显示
eheap_alloc: Cannot allocate 8414160 bytes of memory (of type "heap").
“但在 Linux 中它可以成功为所有客户端工作”。我怎样才能克服这个问题?
帮帮我吧...
谢谢你。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你尝试过[1]吗?
erl +hms 尺寸
erl +hmbs
具有不同尺寸的尺寸?
[1] http://www.erlang.org/doc/man/erl.html< /a>
Have you tried [1] ?
erl +hms Size
erl +hmbs Size
with different Sizes ?
[1] http://www.erlang.org/doc/man/erl.html
当您收到此消息时,即使您的服务器在 Linux 上运行良好,也可能存在一些内存泄漏。这可能是某种“活锁”,在某些情况下会锁定您释放内存。因此,您能做的最好的事情就是更好地查看服务器中占用内存的内容。
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.