php - Apache 502 Error - Server Hang up -


i using ec2 instance (t2 medium) apache, mysql , php. getting on regular basis 502(server hangup) error. trying find solution week didn't able resolve it.

i using mpm_prefork server config.

<ifmodule mpm_prefork_module>      startservers             15      minspareservers          15      maxspareservers          25      maxrequestworkers        200      maxconnectionsperchild   1000 </ifmodule> 

also not able see 502 status code in access & error logs.

any suggestion helpful.

generally 'instance status check' verifies instance's operating system accepting traffic.

when fails means operating system inside instance not responding traffic, example can happen when windows instance hangs or when linux instance kernel panics or network disabled inside instance.

"502 bad gateway" sign of webserver not responding in timely manner, in line fact cloudwatch has recorded constant 100% cpu usage instance.

given fact instance t.micro instance, if high load legitimate may want consider migrating larger instance type m1.small example.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -