What's the semantic of "max user processes" (ulimit)

Hello everyone,
I don't understand the behaviour of ulimit, have a look at this shell dump:
$ ps hax | wc -l
120
$ ps h -u myUsername | wc -l
35
$ ulimit -Su 78
$ ps h -u myUsername | wc -l
bash: fork: retry: No child processes
bash: fork: retry: No child processes
bash: fork: retry: No child processes
bash: fork: retry: No child processes
bash: fork: Resource temporarily unavailable
$ ulimit -Su 80
$ ps h -u myUsername | wc -l
35
$
If I am currently running 35 processes, one would assume that >35 more should be sufficient to start two more processes - but obviously it isn't.
In this case, I needed at least "ulimit -Su 80" to start ps and wc.
If I set the "max user processes" limit to 79, the first four error messages change from "bash: fork: retry: No child processes" to "bash: fork: retry: Resource temporarily unavailable"
Can somebody explain this bevahiour to me, please? Why am I not allowed to create new processes, although the limits should be sufficient?

Apologies for the necro-bump but I hope this will help others.
ulimit -u does not give you the max number of processes rather it displays the max number of threads.  To list the number of threads a user is currently using:
ps -L -u myusername | wc -l
The output from the above two commands can now be compared and allow you to set the appropriate ulimit.

Similar Messages

  • Changed Ulimits values for the Oracle user and getting error -bash: ulimit: max user processes: cannot modify limit: Operation not permitted when logging in.

    I'm trying to increate the ulimits for max user processes and open files for the oracle user.  I've set the values in limits.conf, /etc/profile and in oracle's environment scripts. Now when I log in as oracle I get the below errors. If I change the ulimits back to the original values errors go away but ulimits aren't changed.
    login as: oracle
    [email protected]'s password:
    Last login: Fri Mar  6 09:56:02 2015 from mtkadmin12
    You are logging onto an Oracle system.
    Kickstarted on: 2014-06-05
    -bash: ulimit: max user processes: cannot modify limit: Operation not permitted
    -bash: ulimit: max user processes: cannot modify limit: Operation not permitted
    [oracle@servername ~]$

    Thanks for the update.
    I modified the /etc/security/limits.d/90-nproc.conf and added a line for oracle and also modifed the oracle.sh file.  The ulimits are setting correctly when I su - oracle but they are still wrong when sshing in as oracle.
    [root@mtkdevorap11d-1 ~]# su - oracle
    [oracle@mtkdevorap11d-1 ~]$ ulimit -Ha
    core file size          (blocks, -c) unlimited
    data seg size           (kbytes, -d) unlimited
    scheduling priority             (-e) 0
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 1030982
    max locked memory       (kbytes, -l) 94371840
    max memory size         (kbytes, -m) unlimited
    open files                      (-n) 65536
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority              (-r) 0
    stack size              (kbytes, -s) unlimited
    cpu time               (seconds, -t) unlimited
    max user processes              (-u) 16384
    virtual memory          (kbytes, -v) unlimited
    file locks                      (-x) unlimited
    [oracle@mtkdevorap11d-1 ~]$
    [oracle@mtkdevorap11d-2 ~]$ ssh mtkdevorap11d-1
    Last login: Mon Mar 16 13:04:16 2015 from mtkdevorap11d-2.conveydev.com
    You are logging onto an Oracle system.
    Kickstarted on: 2014-06-05
    [oracle@mtkdevorap11d-1 ~]$ ulimit -Ha
    core file size          (blocks, -c) unlimited
    data seg size           (kbytes, -d) unlimited
    scheduling priority             (-e) 0
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 1030982
    max locked memory       (kbytes, -l) 64
    max memory size         (kbytes, -m) unlimited
    open files                      (-n) 4096
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority              (-r) 0
    stack size              (kbytes, -s) unlimited
    cpu time               (seconds, -t) unlimited
    max user processes              (-u) 16384
    virtual memory          (kbytes, -v) unlimited
    file locks                      (-x) unlimited
    [oracle@mtkdevorap11d-1 ~]$

  • How to increas the max user process number in Solaris 11?

    Hey
    Could anyone told me how to increas the max user process number in Solaris 11? I tried below as described in https://blogs.oracle.com/hasham/entry/solaris_10_increasing_number_of , but it cannot work.
    set pidmax=60000
    set maxusers = 4096
    set maxuprc = 50000
    set max_nprocs = 50000
    Thanks!
    Edited by: 966272 on Oct 18, 2012 7:38 AM

    Perhaps you should work your original forum post:
    Oracle 11g installation fail on Solaris 11 64bit - ORA-00443
    through to a resolution before you complicate things that likely don't apply.
    You make an assumption in that other post about exceeding various maximums. That may be true or it may not be true. Since the installation of a database program seems to be your actual expectation, go work that forum thread instead.

  • -bash: ulimit: max user processes: cannot modify limit: Operation not permi

    Hi,
    Installed 10g Forms&Reports only on RHEL 3ES.
    Modified /etc/profile according to Oracle's documentation:
    if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
    ulimit -n 16384
    ulimit -p 16384
    else
    ulimit -u 16384 -n 16384
    fi
    fi
    But when I logon to the server, the following message shows:
    "-bash: ulimit: max user processes: cannot modify limit: Operation not permitted"
    What is the problem here?
    Thanks
    Stephan

    Hi,
    Installed 10g Forms&Reports only on RHEL 3ES.
    Modified /etc/profile according to Oracle's documentation:
    if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
    ulimit -n 16384
    ulimit -p 16384
    else
    ulimit -u 16384 -n 16384
    fi
    fi
    But when I logon to the server, the following message shows:
    "-bash: ulimit: max user processes: cannot modify limit: Operation not permitted"
    What is the problem here?
    Thanks
    Stephan

  • What is the default time settings in Process chains

    Hi,
    What is the default time settings in Process chains.
    How to set time settings for daily,weekly,monthly loads in Process chains.
    What is the time settings that we have to take care when creating meta chains.
    Thanks,
    Madhu.

    Hi Madhu,
    The Time settings for any PC is done in the start variant of the PC. There is nothing like default time setting. These settings are totally depended on the requirement and system performance. It is a general rule of thumb to load the data during a time when the user activity is minimum as the loading process is going to occupy many dialog as well as background WPs. So, if you schedule them at a time when there are many users on the system, they might feel that the system is slow. Hence, you decide as to what is the best time for scheduling a PC. The same applies to meta chain also. In case of meta chains, you make sure the dependencies of the local chains is also handled. Hope this helps.
    Thanks and Regards
    Subray Hegde

  • What is the Difference 'VOFM' and 'User-Exit' ?

    What is the Difference 'VOFM' and 'User-Exit' ?

    If you need to implement any of these User exits, you first create a project for the user exit, then assign the user exit(s) to your project. Then you write the coding for the user exit, and finally activate the project.
    For general information about user exits, in the R/3 Library, go to Basis components and look at the Enhancements section. In addition there is detailed information about each user exit that you can access when you assign it to your project (see below).
    Activities
    Start by creating your project.
    1. Enter a name for your project.
    2. Select Modification -> Create.
    3. Enter a short text for your project and select save.
    Next assign the user exit to your project.
    4. Select Components.
    5. Enter the name(s) of the user exits you want to implement.
    6. Select SAP documentation, if you want detailed information on this user exit.
    7. Select save.
    8. Select back.
    Next make your coding modifications.
    9. Select enhancement components.
    10. Select change.
    11. Select the user exit you want to write code for.
    12. Select the include zxpbco01.
    The system will then prompt you to create this include, and you can continue to write your coding in it.
    Next activate your project.
    13. Return to the initial screen and select activate project.
    Routines
    Routines are short sub-programs that carry out various checks during document processing. In the SD module, you can create and process routines for copying requirements, data transfer, requirements and formulas using transaction VOFM. Besides the routines delivered to you with the system, you can create your own individual routines.
    Transaction VOFM allows you to follow a standardized procedure for creating routines. The name ranges are predefined for routines delivered to you with the system and for routines created by the customer. This name convention guarantees that your own routines are not overwritten during a Release upgrade.
    Copying requirements and data transfer
    The routines for coying requirements and data transfer are defined for the document types sales orders, deliveries, billing documents, sales activities, as well as for texts. You specify copying requirements and the data transfers when defining the document flow for each document type. You enter the routines for texts in the access sequences for texts.
    o Copying requirements determine which data is copied during the copying of documents. A copying requirement could define, for example, that the same customer must appear in the document header when you copy an inquiry to a quotation.
    o Routines for data transfer make a detailed control of the copying of fields possible. A data transfer could define, for example, that particular item fields can only be copied in combination with other particular fields and can only be copied into contracts or credit and debit memos.
    Requirements and formulas
    Routines for requirements and formulas are used for functions using the condition technique. You enter these routines in the pricing procedure or the condition types. Requirements are also used for statistics.
    o A requirement in pricing can determine that an access is dependent on a particular precondition. It can carry out a check of the document currency, for example, and, depending on whether it is a foreign or the local currency, allow or deny the access.
    o Formulas are used in pricing to define various factors for pricing. Formulas are defined for scale base value, condition base value, condition amount, group key, and rounding rules. The formula for a rounding rule could define, for example, that all calculated amounts are rounded to two places behind the decimal point during a price change of the condition record. The formula for a condition base value could define, that the header discount is distributed among the order items according to volume an not value of the item, as is the case in the standard SAP R/3 System.
    Creating routines
    There are two methods to create a routine
    1. Creating by overwriting
    When using this method, a note appears as a commentary in the routine to be newly created.
    2. Creating
    When creating a new routine, an ABAP with internal number assignment is created.
    You always have to activate a new routine before using it. Each routine for requirements and formulas, copying requirements and data transfers is stored in a separate program. For each new routine an entry is added in table TFRM and TFRMT. For each routine, a long text can be stored as a text module.
    Most routines must be changed in client 000. Transaction VOFM can be transported as XPRAs, which means that after the import all routines can be activated.
    Name ranges for routines
    The standard routines are to be within the number range 001-599 (for 2 digit formula numbers, 01-49)
    The user routines are to be within the number range 600-999 (for 2 digit formula numbers, 50-99).

  • What is the password for 'oracle' user created during XE installation?

    Hi,
    What is the password for 'oracle' user automatically created when XE is installed?
    I installed XE on Linux and it's created under 'oracle' user, but I don't know 'oracle' password. So, I cannot stop TNS listener.
    During configuration, it prompted me to enter SYS and SYSADMIN password but it didn't ask me to enter 'oracle' user password.
    Please let me know or point me to the document.
    Thanks,
    N

    Hi Jari,
    I tried your suggestion, but it didn't work unfortunately.
    When I type (sudo su -oracle) as follows, it still prompts the password. When I hit Enter key w/o anything, it seems to proceed and the prompt shows up in the following line. So, I thought it was successful, but when I checked 'whoami', it's not logged in as 'oracle'.
    So, I created the password for 'oracle' and logged in as 'oracle' using a new password. Then, I stopped TNS listener to uninstall XE.
    It would be nice if it's documented in XE document somewhere... since it's created by XE installation, I assumed some kind of default password was used.
    Thanks,
    N

  • What is the limited number of users?

    What is the limited number of users?

    WHile your question is a bit too vague to answer with certainty I'll start with a res[ponse and you can fine tune it if it is not what you are asking about.
    The number of users of any single product for a single user license at any given moment in time is one.

  • What is the command to look at process at os level ?

    what is the command to look at process at os level ?

    Do you want Dispatcher processes or else all sap related processes?
    Any ways:
    Try with this:
    ps -ef/grep XXXX/grep DEV..here XXXX..give process name
    If you want for all then just go with ps -ef/grep DEV
    If you want to have cpu utilization then just go with
    TOPAS cmd ....
    Use dpmon for a single dispatcher.
    Satish

  • What are the phases in requirements gathering process?

    Hello
    What are the phases in requirements gathering process?
    Lets say we start from meeting with business , several workshops , etc
    Is business Blueprint the final phase of this process?
    Whats the difference between Business Blueprint and functional spec?
    Thanks

    Hi ,
          Blueprint is the starting phase of the project. First there would be requirement gathering according to the client requirements. Then according to these requirements functional specs would be made. Based on these functional specs technical spec would me made and once approved from the client development would start.
    This is just an overview. Hope it helps.
    Regards,
    Rahul.

  • What is the purpose of using  return process sales  doc type?

    what is the purpose of using  return process sales  doc type?

    hi,
    There is the standard process
    1)Order type( RE) VA01
    2)Delivery( LR)Vl01n with reference to return order
    i)if the movement is 651then system will not generate accounting document upon doing Post goods Receipt ,the stock will be in the return location
    then you use movement type 453 to get the stock in UN restricted
    ii)if the movement type 653 the system generates accounting document and stock posts in unrestricted use
    3)With reference to Delivery raise Credit memo (RE) with transaction VF01
    CHAN

  • What is the purpose of using  credit process sales  doc type?

    what is the purpose of using  credit process sales  doc type?

    hi,
    A transaction that reduces Amounts Receivable from a customer is a credit memo.
    Credit memo request is a sales document used in complaints processing to request a credit memo for a customer. If the price calculated for the customer is too high, for example, because the wrong scale prices were used or a discount was forgotten, you can create a credit memo request. The credit memo request is blocked for further processing so that it can be checked. If the request is approved, you can remove the block. The system uses the credit memo request to create a credit memo.
    CHAN

  • What is the purpose of using  debit process sales  doc type?

    what is the purpose of using  debit process sales  doc type?

    hi,
    A debit memo is a transaction that reduces Amounts Payable to a vendor because; you send damaged goods back to your vendor.
    Debit memo request is a sales document used in complaints processing to request a debit memo for a customer. If the prices calculated for the customer were too low, for example, calculated with the wrong scaled prices, you can create a debit memo request. The debit memo request can be blocked so that it can be checked. When it has been approved, you can remove the block. It is  like a standard order. The system uses the debit memo request to create a debit memo.
    CHAN

  • What is the meaning of KEYBOARD/USER'S GUIDE-SAU

    What's the meaning of KEYBOARD/USER'S GUIDE-SAU

    This appears on your invoice or order when you order a MacBook Air.  It specifies the country your machine is being set up for.

  • What is the available memory for user in iPad

    In iPad 3rd generation wifi model, what is the available memory for users?
    Capacity          Available Memory
    16 GB                      ?
    32 GB                      ?

    iOS should take about the same amount of storage on both, the difference is partly due to how a 'gigabyte' is defined e.g. on packaging it's 1 billion bytes, but on the device itself it uses the binary definition (2 to the power 30), and some storage may also be 'lost' by formatting : http://support.apple.com/kb/TS2419

Maybe you are looking for