I am undergoing the performance test on MySQL and i need your guidance.If there is any tool available to optimize the MySQL Queries.Please let me know.The tool i am seeking for is one which would be useful to identify the query which causing the memory leak.
Thanks,
using EXPLAIN in front of your query is a good starting point to understand what is going bad or too slow. So you can improve performances using primary/foreign keys and indexes.
A query, as Mitch Wheat said, doesn’t produce a memory leak; maybe it takes a lot of time and consumes a lot of ram, but there are different reasons for this.