Creation Zone

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Wednesday, 9 July 2008

Solaris: Increasing the Maximum Processes per User ID

Posted on 14:48 by Unknown
This blog post attempts to show the steps involved {with an example} in increasing the maximum processes allowed per user id on Solaris.

Steps

  • Examine the current limit.

    % ulimit -a
    core file size (blocks, -c) unlimited
    data seg size (kbytes, -d) unlimited
    file size (blocks, -f) unlimited
    open files (-n) 256
    pipe size (512 bytes, -p) 10
    stack size (kbytes, -s) 8480
    cpu time (seconds, -t) unlimited
    max user processes (-u) 9989
    virtual memory (kbytes, -v) unlimited

    # echo maxuprc/D | adb -k
    physmem 5f75e
    maxuprc:
    maxuprc: 9989

    # sysdef | grep v_maxup
    9989 maximum processes per user id (v.v_maxup)



    On Solaris:

           max_nprocs = (10 + 16 * maxusers)
           maxuprc = (max_nprocs - 5)

    Where:

    max_nprocs = Total number of system wide processes

    maxuprc = Total number of processes a non-root user can have occupying a process table slot at any point in time

    maxusers is a tunable parameter at the kernel level that is by default set to the lesser of the amount of memory in Mbytes or 2048. Range: 1 to 2048, based on physical memory if not set in the /etc/system file; and 1 to 4096, if set in the /etc/system file.


    Proceeding with the same example:


    # echo maxusers/D | adb -k
    physmem 5f75e
    maxusers:
    maxusers: 624


    Therefore, maxuprc = (10 + (16 * 624) - 5) = 9989.

  • If rebooting the system is not an option, dynamically increase the maximum user processes limit as shown in the example. The following example increases the limit to 20,000.


    # adb -kw
    physmem 5f75e
    maxuprc/D <-- type this line
    maxuprc:
    maxuprc: 9989
    v+0x1c/W0x4e20 <-- type this line. 0x4e20 is the hexa-decimal equivalent of 20,000
    v+0x1c: 0x2705 = 0x4e20
    $q <-- type this to quit adb


    Check the maximum user processes limit one more time.

    % ulimit -a | grep processes
    max user processes (-u) 20000

    % sysdef | grep v_maxup
    20000 maximum processes per user id (v.v_maxup)


    Note:
    Even though the maxuprc gets updated in the system, abd still shows the old value that it picked up during the system boot up process.

  • If the system can be rebooted or if you want the new maxuprc value to be presistent across multiple reboots, add the following line to /etc/system.

           set maxuprc = <DesiredNumber>

Alternatively increase maxusers from the current value by setting set maxusers = <DesiredMbytes> in /etc/system. Then the maximum number of processes on the system will be derived from the maxusers.

Check Process-Sizing Parameters section of Solaris Tunable Parameters Reference Manual for more.

Reference:
Sunsolve Document 202586: How is the maximum size of the process table determined?
Solaris kernel tunables
________________
Technorati Tags:
 Solaris |  OpenSolaris
Read More
Posted in | No comments

Wednesday, 2 July 2008

Manual installation Steps for PHP on Windows Vista

Posted on 13:08 by Unknown
These are the steps for manual installation of PHP version 5.2.6 with Apache HTTP server version 2.2.9 on windows Vista.

Download Apache HTTP Server from the following link.
http://httpd.apache.org/

Step 1:

Download the latest zip package of Windows Binaries from the following link.
http://www.php.net/downloads.php

Step 2:

Extract the zip binary package into C:\php folder.

Step 3:

Add the PHP directory to the PATH as follows.
click start -> settings -> control panel -> System.
click on Advanced system settings (appears on left side of the window)
click on the 'Environment Variables' button
scroll down to find 'Path' in the System variables pane.
Double click on the 'Path' and add ;C:\php at the end and click on the ok button.
Restart the system.

Step 4:

In the php folder look for the file 'php.ini-recommended' and rename the file as 'php.ini'.
Copy the 'php.ini' file into 'C:\windows' folder.
Rename the 'php.ini' file in 'C:\php' folder to 'php-activescript.ini'.

Step 5:

Download 'php5activescript.dll' from the following link.
http://pecl4win.php.net/list.php

place the DLL in 'C:\php' folder.
Register the DLL as follows.
Click on the Start -> Programs -> Accessories -> Command Prompt.
In the Command Prompt window go to 'C:\php' and type regsvr32 php5activescript.dll

Step 6:

Changes to be made to httpd.conf file of Apache:

Look for 'httpd.conf' file in the folder chosen for installation of Apache software.
(By default the file may be located in C:\program Files folder.)

Add the following line in the LoadModule segment of the conf file.

LoadModule php5_module c:\php\php5apache2_2.dll

Add the following line in the segment of the conf file

AddType application/x-httpd-php .php

save the changes and close the conf file.

Step 7:

Restart the Apache server.

Reference : PHP Installation Guide.

___________
Technorati Tags:
 PhP |  Windows |  Vista
Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • UNIX/Linux: File Permissions (chmod)
    A file's permissions are also known as its 'mode'; so to change them we need to use the 'chmod' command (change mode). T...
  • Blast from the Past : The Weekend Playlist #3
    The 80s contd., The 80s witnessed the rise of fine talent - so, it is only fitting to dedicate another complete playlist for the 80s. Her...
  • C++: Virtual Function
    A virtual function allows derived classes to replace the implementation provided by the base class. The compiler makes sure the replacemen...
  • Database: Oracle Server Architecture (overview)
    Oracle server consists of the following core components: 1) database(s) & 2) instance(s) 1) database consists of: 1) datafil...
  • C/C++/Java: ++ unary operator
    #include <stdio.h> int main() { int i = 5, j = 5; int total = 0; total = ++i + j++; printf("\ntotal o...
  • C/C++: Structure Vs Union
    A structure is a collection of items of different types; and each data item will have its own memory location. Where as only one item withi...
  • Achievement Award
    Got an Achievement Award/Certificate from Sun Microsystems, in recognition for my effort with Siebel Benchmark!! =:) Related post: http:...
  • Solaris/C/C++: Benefit(s) of Linker (symbol) Scoping
    Introduction By default, the static linker (ld) makes all ELF symbols global in scope. This means it puts the symbols into the dynamic symbo...
  • Linux: Frozen Xwindows
    If Xwindows seem frozen, the following simple key strokes may bring back the Xserver without the need for a reboot Two ways to kill the Xwi...
  • PHP: Memory savings with mysqlnd
    mysqlnd may save memory. In the best cases, it may consume only 50% memory as that of libmysql esp. when the client application does not mod...

Categories

  • 80s music playlist
  • bandwidth iperf network solaris
  • best
  • black friday
  • breakdown database groups locality oracle pmap sga solaris
  • buy
  • deal
  • ebiz ebs hrms oracle payroll
  • emca oracle rdbms database ORA-01034
  • friday
  • Garmin
  • generic+discussion software installer
  • GPS
  • how-to solaris mmap
  • impdp ora-01089 oracle rdbms solaris tips upgrade workarounds zombie
  • Magellan
  • music
  • Navigation
  • OATS Oracle
  • Oracle Business+Intelligence Analytics Solaris SPARC T4
  • oracle database flashback FDA
  • Oracle Database RDBMS Redo Flash+Storage
  • oracle database solaris
  • oracle database solaris resource manager virtualization consolidation
  • Oracle EBS E-Business+Suite SPARC SuperCluster Optimized+Solution
  • Oracle EBS E-Business+Suite Workaround Tip
  • oracle lob bfile blob securefile rdbms database tips performance clob
  • oracle obiee analytics presentation+services
  • Oracle OID LDAP ADS
  • Oracle OID LDAP SPARC T5 T5-2 Benchmark
  • oracle pls-00201 dbms_system
  • oracle siebel CRM SCBroker load+balancing
  • Oracle Siebel Sun SPARC T4 Benchmark
  • Oracle Siebel Sun SPARC T5 Benchmark T5-2
  • Oracle Solaris
  • Oracle Solaris Database RDBMS Redo Flash F40 AWR
  • oracle solaris rpc statd RPC troubleshooting
  • oracle solaris svm solaris+volume+manager
  • Oracle Solaris Tips
  • oracle+solaris
  • RDC
  • sale
  • Smartphone Samsung Galaxy S2 Phone+Shutter Tip Android ICS
  • solaris oracle database fmw weblogic java dfw
  • SuperCluster Oracle Database RDBMS RAC Solaris Zones
  • tee
  • thanksgiving sale
  • tips
  • TomTom
  • windows

Blog Archive

  • ►  2013 (16)
    • ►  December (3)
    • ►  November (2)
    • ►  October (1)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (2)
    • ►  January (1)
  • ►  2012 (14)
    • ►  December (1)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (2)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (2)
  • ►  2011 (15)
    • ►  December (2)
    • ►  November (1)
    • ►  October (2)
    • ►  September (1)
    • ►  August (2)
    • ►  July (1)
    • ►  May (2)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2010 (19)
    • ►  December (3)
    • ►  November (1)
    • ►  October (2)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (1)
    • ►  May (5)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2009 (25)
    • ►  December (1)
    • ►  November (2)
    • ►  October (1)
    • ►  September (1)
    • ►  August (2)
    • ►  July (2)
    • ►  June (1)
    • ►  May (2)
    • ►  April (3)
    • ►  March (1)
    • ►  February (5)
    • ►  January (4)
  • ▼  2008 (34)
    • ►  December (2)
    • ►  November (2)
    • ►  October (2)
    • ►  September (1)
    • ►  August (4)
    • ▼  July (2)
      • Solaris: Increasing the Maximum Processes per User ID
      • Manual installation Steps for PHP on Windows Vista
    • ►  June (3)
    • ►  May (3)
    • ►  April (2)
    • ►  March (5)
    • ►  February (4)
    • ►  January (4)
  • ►  2007 (33)
    • ►  December (2)
    • ►  November (4)
    • ►  October (2)
    • ►  September (5)
    • ►  August (3)
    • ►  June (2)
    • ►  May (3)
    • ►  April (5)
    • ►  March (3)
    • ►  February (1)
    • ►  January (3)
  • ►  2006 (40)
    • ►  December (2)
    • ►  November (6)
    • ►  October (2)
    • ►  September (2)
    • ►  August (1)
    • ►  July (2)
    • ►  June (2)
    • ►  May (4)
    • ►  April (5)
    • ►  March (5)
    • ►  February (3)
    • ►  January (6)
  • ►  2005 (72)
    • ►  December (5)
    • ►  November (2)
    • ►  October (6)
    • ►  September (5)
    • ►  August (5)
    • ►  July (10)
    • ►  June (8)
    • ►  May (9)
    • ►  April (6)
    • ►  March (6)
    • ►  February (5)
    • ►  January (5)
  • ►  2004 (36)
    • ►  December (1)
    • ►  November (5)
    • ►  October (12)
    • ►  September (18)
Powered by Blogger.

About Me

Unknown
View my complete profile