Should MySQL database be in dedicated server?
The argument against a dedicated server is invalid, if the microseconds that account for the delay when talking to a different server matter you would not be asking about MySQL.

But there is one thing you could check before going out and buying hardware: A good database is trying to utilize as much main memory as possible for caching. Make sure your system is not swapping memory out to disk when your application is running simultaneously on the same server.