简体   繁体   中英

Very high memory usage when profiling python in PyCharm

I'm trying to profile a python application in pycharm, however when the application terminates and the profiler results are displayed Pycharm requires all 16gb of RAM that I have, which makes pycharm unusable.

Said python application is doing reinforcement learning, so it does take a bit of time to run (~10 min or so), however while running it does not require large amounts of RAM.

I'm using the newest version of PyCharm on Ubuntu 16.04 and CProfile is used by Pycharm for profiling.

I'd be very glad if one of you knows a solution.

EDIT: It seems this was an issue within PyCharm, which has since been fixed (as of 2017/11/21)

这是PyCharm内部的缺陷: https ://youtrack.jetbrains.com/issue/PY-25768

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM