dtjzpg5313 2009-05-10 13:39
浏览 11

共享主机上的PHP性能

I have php script which calls another script with php exec function. The called script does batch process job, that is updating transaction statuses, notifies customers(puts emails to mail queue which runs separately). So it will take 20-30 minutes due to a very large table(500000 rows), Now i am running it under my desktop windows machine and php uses up to 50% CPU, mysql 20% CPU. Is it normal practice ? What if i put this script in a shared hosting ? Will i have trouble with that ? It will not break the shared hosting rules ? The batch process can be started by a user anytime(normally one a month or can be more frequently).

Any suggest on this ?

Thanks for reading.

  • 写回答

6条回答 默认 最新

  • doubo7131 2009-05-10 13:47
    关注

    The servers that run shared hosting are typically much faster than the average home computer, so it probably will not take as long as is does running on your local computer. I think the alarm bells would start to go off if you were sending 500,000 emails a day but if you have a reasonable host using that much CPU for a short time shouldn't be too much of an issue.

    You could always talk to them about it first, im sure they will sort something out.

    评论

报告相同问题?

悬赏问题

  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 AT89C51控制8位八段数码管显示时钟。
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题