PyCharm doesn't free memory?

Hi all

I keep my machine on all the time, and PyCharm open as well, sometimes I notice that it become very unresponsive and resource hog, my allocation heap size is of 480 of 508, and have like 5 files open and not many changed files for version control.

When I restart PyCharm everything comes to normal. Any clue?

PyCharm version: 1.0.1

Mac os x: 10.6.5

7 comments

Hello Esteban,

Please take a memory snapshot when the memory usage is high, as described

in http://devnet.jetbrains.net/docs/DOC-1212

I keep my machine on all the time, and PyCharm open as well, sometimes

I notice that it become very unresponsive and resource hog, my

allocation heap size is of 480 of 508, and have like 5 files open and

not many changed files for version control.

When I restart PyCharm everything comes to normal. Any clue?

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Profiling actions are not showing in the toolbar but they are in the toolbar configuration.

0

Hello Esteban,

This means that you don't have the YourKit agent enabled. You need to enable

it or to download PyCharm 1.1 EAP in which it's enabled by default.

Profiling actions are not showing in the toolbar but they are in the

toolbar configuration.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Where can I get 1.1 EAP? I would be glad to test it :-D

0

Hello Esteban,

http://confluence.jetbrains.net/display/PYH/JetBrainsPyCharmPreview

Where can I get 1.1 EAP? I would be glad to test it

:-D

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

The running of PyCharm does not free up memory until you close it. This is not actually PyCharm's fault. It is the fault of Java. JRE is designed to have a one way dynamic memory use. It will grow to whatever you set the max to. But it will almost never release the memory back to the OS unless you close it. I feel this is a horrible thing if you are using an application on a desktop PC.

What really can use a lot of memory are the inspections. I have a project I am working on and the inspection process can cause my heap to max out (10GB of ram) and when the inspection process ends not one byte of the 10GB is released back to the OS, Now what I did notice is that there are still objects in the heap. And these objects still have some kind of an attachment to the core. otherwise they would be garbage collected. and this does not happen. I do not know if this is the cause of the heap never shrinking and Java releasing the memory back to the OS. From my investigating it's a 50/50 shot if the JVM will release the memory or not. I do not believe that this is something that the JVM can be told to do. It has to decide if it wants to. That specific part of it I have not been able to get a clear explanation on. What exactly needs to take place and what settings need to be made to get the JVM to release the memory seems to be a phantom. I would imagine that if there was a way to force the JVM to do it, JetBrains would have done it.

 

This seems to be the single biggest problem with the JetBrains line of IDE's. Maybe there is a different "Flavor" of the JVM that is compatible with the one made by Oracle that would release the memory properly. It can be a headache to have to close and open the IDE to release the memory. But on the other side of that coin, PyCharm is the most feature rich IDE available for the price. So it all depends on how you weigh the problem.

Oracles campus is only 45 minutes from where I live. maybe I should walk in there and complain. LOL.

0

Hi Drschlosser,

Could you please capture a Memory snapshot as described here https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems, create a performance problem issue in our issue tracker using the link https://youtrack.jetbrains.com/issues/PY and attach this snapshot as well as logs folder zipped (Help | Show Log in...) to the issue?

I can also create it for you, if you upload it to https://uploads.services.jetbrains.com/ zipped and provide the name of the zip file.

0

Please sign in to leave a comment.