SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot Fed's Avatar
    Join Date
    Jun 2005
    Location
    Italy
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    resources management

    I have a problem that should be rather easy to troubleshoot

    I have a php script that needs to run for 30 minutes, 1 hour or even several hours using intensively PHP and MySQL.

    When this script is running, I can't access other pages/scripts. To clarify, it's like if there was only one apache thread running, or no resources were available to serve a new request.
    The other page just keeps loading ( firefox tab loading )

    httpd.exe uses ~40MB if memory, mysqld.exe ~30MB ( currently it's running on my own computer, windows + xampp, until it's ready and will be moved to a linux vps ).

    I need this script to keep running as long as necessary, but some resources must remain available to serve other requests...which settings do I need to change?
    I | T | E

  2. #2
    SitePoint Wizard silver trophy ldcdc's Avatar
    Join Date
    May 2004
    Location
    Ploiesti
    Posts
    4,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I suppose you have to look into how you can change tasks priority in the OS you're using. I'd love to be able to help with actual instructions, but I haven't used Windows in a very long time.

    Maybe one of these will do the trick for you:

    http://www.askvg.com/how-to-permanen...-task-manager/
    http://xona.com/2004/07/22.html
    http://www.microsoft.com/resources/d....mspx?mfr=true
    HostPeek.com - budget hosts, compared
    CouponsNexus.com - web hosting coupons

    Ultra Cheap Hosts | Web Hosting Reviews Forums

  3. #3
    SitePoint Zealot Fed's Avatar
    Join Date
    Jun 2005
    Location
    Italy
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried setting httpd and mysqld priorities below normal and above normal, no difference.
    moreover, httpd-mpm.conf reads:
    Code:
    <IfModule mpm_winnt_module>
        ThreadsPerChild      150
        MaxRequestsPerChild    0
        #Win32DisableAcceptEx
    </IfModule>
    but it sounds like 149 threads have something else to do...
    I | T | E


Bookmarks

Posting Permissions

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