Sunucu | yapılandırma sorunu, bir php script sadece hiçbir hata günlüğüne ve ölmek

1 Cevap

İlginiz için teşekkürler & hahaha bu bir programlama hatası değil, ya da ben ne düşündüğünü şu benim kötü İngilizce için üzgünüm,) ben bu sunucuda veya başka bir şey, bazı yapılandırmasında bir hata olduğunu düşünüyorum ama ne bilmiyorum

I have a php script (is running like a process of linux, its not running on the web browser) that send SMS via SMPP on the port 2055 (using sockets in php) & then inserts like 10,000 rows into a dababase on MySQL, the script gets the data from a XML file; firts it was running in a shared server (Hostgator is our hosting provider) & at the begining it worked fine, with no trouble, but 5 months later an error appear, the process just die with no reason, the script only sent & inserted 700 rows in the table of the database & the process didnt show any warning or error, nothing appears in the error logs, & I didnt make any change in the script Hostgator never helped us hahaha so we decided to move the script from the shared server to a dedicated server; I thought it was a memory problem or something like that, but when we move the script to the dedicated server the problem just get worse, the script die when has just sent & inserted 40 to 50 rows to the database

Bu hata hakkında bilgiler:

  1. paylaşılan sunucu Red Hat 4.1.2-46 & üzerinde adanmış sunucu CentOS 5.4 üzerinde
  2. Ben SMS gönderir çizgi yorumladı, ve var sorun olmaya devam etmektedir
  3. ortak sunucu, en komut iyiydi Yürürlükten, ama sonra komut sadece aprox 700 takılı olduğunda ölmeye başladı. Veritabanında, ve Artık script 2500 satırları, onun daha iyi takılı olduğunda ölüyor ama biz bir şey değişmedi
  4. sadece tabloda 40 satır gibi takılı olduğunda adanmış sunucu, komut ölür
  5. script, o ölmeden önce, bir zombi süreci değiştirmek & biz neden bilmiyorum
  6. belleğin kullanım% 0.3 olduğu görülmektedir, ve işlemci% 0.7 'si% 1 gibi görünmektedir
  7. Ben 128Mb için php maksimum bellek sınırı değişti, ve hatta (yani php alışkanlık herhangi bir sınırı var) -1 ama sorun olmaya devam
  8. Biz aynı zamanda mysql 50 bağlantı sınırı var, bu yüzden bu sorun olmadığını düşünüyorum
  9. Im using mysqli to connect from php to mysql
    1. Onlar sunucularında herhangi bir değişiklik ya da güncelleme yapılmış değil ki Hostgator raporu

sorun ne olabilir? Ben ne yapmalıyım?? ne aramak gerekir?? mantığı Im şey eksik olduğunu? ne adımlar yönetirken takip etmek zorunda & yok Linux üzerinde sürecinin sorunlarının araştırılarak??

thank you very much, I think this is not a programming problem, but you have more experience than me, you can tell me thanks!!! bye!!! :)

1 Cevap

Ben komut ölür sanmıyorum, ama aşımına. PHP yapılandırmasını görmek ve bu özel komut dosyası için herhangi bir zaman çıkışları kaldırın. - http://php.net/manual/en/function.set-time-limit.php