RT,linux, how to troubleshoot a CPP service with high CPU and memory? Trouble a little bit and hope to give a more detailed answer. At present, all I can think of is gdb, but I"m not quite sure how to get gdb.
RT,linux, how to troubleshoot a CPP service with high CPU and memory? Trouble a little bit and hope to give a more detailed answer. At present, all I can think of is gdb, but I"m not quite sure how to get gdb.
are you under Linux? Linux before I used a tool Valgrind, can do memory optimization, error checking, etc., it is very easy to use, put your debug version of the program behind the implementation of valgrind on it, he will dynamically collect the information executed by the program for optimization and troubleshooting, very helpful. The disadvantage is that the execution of your program becomes slower.