I need to remove limit on max connections

Discussion in 'Site & Server Administration' started by deriklogov, Jul 16, 2009.

  1. #1
    Hey, I can not run more than 6 php scripts at the same time from 1 user (ip), how I can remove that limit and where ?

    Thank you for your help
     
    deriklogov, Jul 16, 2009 IP
  2. jphilipson

    jphilipson Peon

    Messages:
    167
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What type of server is this and how is the limit being imposed? I have never heard of such a thing.
     
    jphilipson, Jul 16, 2009 IP
  3. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,078
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #3
    lets say you open 10 tabs in browser and try to run some script which executes more than 20 seconds( so u could have some time to see that) , and first 6 scripts starts running , but the rest getting in line waiting till first 6 gets done. You would say its a browser limit , but if you using curl from cron - its same story.

    Its centos based server.
     
    deriklogov, Jul 16, 2009 IP
  4. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,078
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #4
    I think its could be some php protection against people who could attack your server with million request at the same time, so something holds that limit, but where it is located
     
    deriklogov, Jul 16, 2009 IP
  5. vpdesigns

    vpdesigns Peon

    Messages:
    353
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Do you mean the PHP Execution Time. If it is then you can change the limit in the php config file.
     
    vpdesigns, Jul 17, 2009 IP
  6. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,078
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #6
    to vpdesigns: no , its not php execution time
     
    deriklogov, Jul 17, 2009 IP
  7. porntorch

    porntorch Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    There's only really 2 different limits it could be that I could think of.

    1) Apache max connections limit
    2) MySQL max connections - if reached would pause page generation until a connection opens up or the connection wait time timeout is reached

    Try looking into those.
     
    porntorch, Jul 19, 2009 IP
  8. Rossdimassimo

    Rossdimassimo Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    What panel are you using if any?
     
    Rossdimassimo, Jul 19, 2009 IP
  9. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,078
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #9
    I am using cPanel 11.24.5
     
    deriklogov, Jul 19, 2009 IP
  10. CandyCottonLover

    CandyCottonLover Banned

    Messages:
    93
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #10
    This is server side limitation. You can edit the setting in httpd.conf and my.cnf.
     
    CandyCottonLover, Jul 20, 2009 IP
  11. gary4gar

    gary4gar Peon

    Messages:
    496
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Login via SSH and run the following command

    
    vi /etc/my.cnf
    Code (markup):
    now look for following fields, Try these values
    max_connections = 555
    max_user_connections = 12


    This should do the trick for you
     
    gary4gar, Jul 20, 2009 IP