- Joined
- Oct 15, 2009
- Messages
- 25
- Reaction score
- 1
Which of these 2 programs uses more server resources?
Java or MySQL?
Java or MySQL?
Purely dependent on what program you are running in JVM or the size of your database, as well as how MySQL is configured. Why would you even compare the two? They're completely different things (RDBMS vs VM)
If you're running both (Java+MySQL server), MySQL would consume it faster, but you have greater control over it's garbage collection (query cache, tables in memory, etc), whereas JVM would develop memory leaks and eventually over take MySQL and likely never go back down until you restarted the server.
edit: nvm don't even understand the question unless he means mcdb/xml
Sounds right to me.If you're running both (Java+MySQL server), MySQL would consume it faster, but you have greater control over it's garbage collection (query cache, tables in memory, etc), whereas JVM would develop memory leaks and eventually over take MySQL and likely never go back down until you restarted the server.
Sounds right to me.![]()
I'm talking about general use not Maple private servers.That's only because you don't know what you're talking about.
The way he is explaining it is directly running a query, or doing PreparedStatement ps = con.prepareStatement("****");
if you do it from java after you close it the resources are released anyways, but if you do it straight from MySQL it won't affect Java at all.
I'm talking about general use not Maple private servers.
In general Java does have the obvious garbage collector, but the amount of queries that run on most sql servers aren't a match to the Java process.
Shitty coding on Odin's part contributes to the Java usage also. In all my times of running a server, I have never seen MySQL use more than Java.
Shitty coding on Odin's part contributes to the Java usage also. In all my times of running a server, I have never seen MySQL use more than Java.