python versus java runtime footprint

python versus java runtime footprint

静谧 发布于 2021-11-29 字数 113 浏览 737 回复 1 原文

Can anyone point to serious comparison of Python runtime footprint versus Java?

Thanks,
Avraham

如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。

扫码加入群聊

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吃素的狼 2022-06-07 1 楼

I can't compare memory footprint because it really depends on classes what you load/use. But what I can tell you that Python (IronPython 2.7 in particular) has real memory leak problems. Especially with third party well used ones like Financial.
When Java application/server runs without issues with rare cases which could be identified with common tools Python grows in memory constantly.

Memory dumps shows that Python itself as well as most of packages don't pay attention for common classes like String and keep them in different parts of the execution modules. It is hard and unwise to go through all these sources and fix all leaks.

I was trying a lot to fix the issues but finally gave in and simply restart application when it reaches some memory threshold.