how to increase memory available

I have a program which runs out of memory under the IDE (windows 7).  It runs fine outside of the IDE on the same machine.  The memory usage of the machine when the program is running outside of the IDE doesn't go past 2G (of 16G).  I searched around this site and the help system and found references to increasing the heap size but no directions about how to do that.  What controls are available and how do I get to them?

4 comments

Hello Michael,

Programs that you start from within the IDE run in a separate process, so

increaing the heap size of the IDE itself will not affect the size of the

memory available to your program. In general, there should be very little

difference in the available memory regardless of whether you run the process

from an IDE or from the command line.

I have a program which runs out of memory under the IDE (windows 7).

It runs fine outside of the IDE on the same machine.  The memory usage

of the machine when the program is running outside of the IDE doesn't

go past 2G (of 16G).  I searched around this site and the help system

and found references to increasing the heap size but no directions

about how to do that.  What controls are available and how do I get to

them?

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

This python program is using sqlalchemy talking to a MS SQL database.  Very early in execution when doing a select I get an error from sqla saying "(ProgrammingError) ('42000', [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]There is insufficient system memory in resource pool 'internal' to run this query. (701) (SQLExecDirectW)".  In starting a program is there something you do that effects memory it has access to?  I know very little about windows memory allocation so maybe this is a silly question, but do you need to give things you start up their own resource pool?

Doing a little searching this appears to map to a MS SQL problem (982854) except that I'm running that patch level and it only happens when I run this exact same code from the IDE so think that might be a red herring.

0

Hello Michael,

The only thing that I can suggest to check is to click on the "Environment

variables" button in the run configuration settings and to make sure

that "Include parent environment variables" checkbox is checked.

This python program is using sqlalchemy talking to a MS SQL database.

Very early in execution when doing a select I get an error from sqla

saying "(ProgrammingError) ('42000', [ODBC SQL

Server Driver][SQL Server]There is insufficient system memory in

resource pool 'internal' to run this query. (701) (SQLExecDirectW)".

In starting a program is there something you do that effects memory it

has access to?  I know very little about windows memory allocation so

maybe this is a silly question, but do you need to give things you

start up their own resource pool?

Doing a little searching this appears to map to a MS SQL problem

(982854) except that I'm running that patch level and it only happens

when I run this exact same code from the IDE so think that might be a

red herring.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Thank you for the response.  The problem just disappeared.  I hate heisenbugs.  In any case, if the problem appears again I'll do some more investigation.

0

Please sign in to leave a comment.