High cpu usage on server but not on Laptop
-
Dear forum members and fxdreema
My EA runs perfect on my I7 laptop (24gb) vpro cpu with almost no cpu usage
If i run this very same EA on my server (linux using playonlinux) intel xeon with 8GB ram the cpu usage is pretty high
Is this normal or does the server needs more ram?
its kinda weird that my laptop performs better than the server -
Whats your server? Is that dedicated or shared? Shared, right?
There are tricky hosting services which offers you fast xeon but in the reality they are hosting too many users on one machine via some virtualization technology - so everything is slow even if you think that you got fast server
They are using other tricky techniques. They offers for you a fast server for a low price. Everything goes so far good, until they decide to decrease the power of your hosted server
What happens after that? Your metatrader is than slower, using too much CPU. If you decide to run even more metatraders with EAs, the CPU time will be exceeded by your activity and after some time they contact you back with the message: "Hey, your CPU time was exceeded and the CPU power of your server will be limited. Therefore consider buying the "PLUS SuperFast Overpriced" plan where you get more power for your apps." - They will limit you even more, into an almost unusable state, to put a pressure on you for buying faster plan and pay them more money
Of course, if you contact them, they will beat you with standard deceptive phrases. -
@miro1360
Thanks for the answer
I have vps server
It might be shared indeed but i dont know that for sure
Can you recommend a good VPS rental?
Or is it cheaper to put up my own?
Coz dedicated cost to much compared with current electricity prices -
It still be better cheaper to find a good VPS for you.
I am out of today's VPS offers. What was good in the past, may not be good today
I think you have to do your own research or a new thread and as a group of people do it. Although it is difficult to say if someone is willing to to collaborate on.
I just said you, how it is working with some providers
-
Is the CPU usage because of the EA or even because of MetaTrader?
-
@fxDreema
It is ony because of the EA
When EA is removed CPU usage goes down -
When some program causes 100% CPU load, then the reason could be some infinite loop in the code. That is a code that runs forever in an infinite loop. This would happen if you connect a block with itself. I'm not aware of such problem currently in the generated code, but who knows. Or it can be something else, but I really don't know. I would not expect high CPU only because multiple blocks exist. Yes, many blocks are heavy for the Tester, but the Tester runs them as often as possible.
Some custom indicators are also heavy.
-
I am willing to send you screenshot private to see
But yeah i use on tick chart to check every tick so it might be that reason