passenger - High memory and CPU consumption for rails application on google cloud -


i have compute engine on google cloud 4 core cpu ivy brigde , 15 gb ram , on have deployed rails application.

before had hosted rails application on digital ocean , there getting throughput , cpu , memory consumption minimal. never crossed 3 gb memory consumption on digital ocean , cpu consumption max around 50% - 55%. on digital ocean had single instance 4 core cpu , 8gb ram , running mysql,redis , sidekiq on same instance , still handle load easily.

but moved google cloud started facing problems same code. expecting more throughput google cloud google has data centers in asia, started facing issue. when restart apache comes normal , again after 2 - 3 hours goes on consuming memeory , cpu , instance stops responding requests anymore.

i checked logs..... , there no increase in traffic, cheked logs during load time ensure whether attacking servers. request found valid browsers valid user agents.

i don't understand why happening. first felt if ddos/dos attack din't find suspicious in log (apache access logs , rails logs).

please me. hoping solution can try , debug issue.

thanks :)


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -