Find the answer to your Linux question:
Results 1 to 3 of 3
I want to know if i can increase the memory space allocated for a process manually while the process is running ,,,, and if it is possible how i can ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    2

    Need to Increase memory space allocated for process

    I want to know if i can increase the memory space allocated for a process manually while the process is running ,,,, and if it is possible how i can do this ,,,

    Thanks..

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    A process will take as much memory as it needs, unless
    - it is limited by it´s own configuration (like for example php: memory_limit = )
    - it is limited in limit.conf
    - it hits limitations from a 32bit architecture, that means: 4GByte maximum per process, even on PAE kernels

    And no, if any of these limitations apply to you, they cannot be changed for a running process.
    You must always face the curtain with a bow.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    There are C-API functions to do this such as setrlimit(), and commands that will allow you to increase resource limits in user space (applied when an application starts) such as ulimit. However, I am not aware of a command that will allow you to change the limits of a running application external to that application, although it may be possible. I simply don't know what it would be if such exists.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...