|
From: Shi, Y. <Yun...@ls...> - 2010-11-03 14:30:16
|
Hi there, I am trying to measure a process running by spawn fast cgi. Spawn fcgi will fork a child process to run my application. Like this: spawn-fcgi -p 9001 -a 127.0.0.1 -F 1 ./restactivator while restactivator is my application. How to perform dynamic analysis using Valgrind in this case? I tried several thing, none of them works. spawn-fcgi -p 9001 -a 127.0.0.1 -F 1 "valgrind --leak-check=yes ./restactivator > memoryCheck.txt" // spawn-fcgi: child exited with: 2 spawn-fcgi -p 9001 -a 127.0.0.1 -F 1 valgrind --leak-check=yes ./restactivator // spawn can't recognize the parameters spawn-fcgi -p 9001 -a 127.0.0.1 -F 1 "valgrind --leak-check=yes ./restactivator" // child exit 2 spawn-fcgi -p 9001 -a 127.0.0.1 -F 1 /usr/local/bin/valgrind --leak-check=yes /root/nxtcore-yshi/nxtcore/nxtrestfwk/restactivator // parameter not recognized spawn-fcgi -p 9001 -a 127.0.0.1 -F 1 "/usr/local/bin/valgrind --leak-check=yes /root/nxtcore-yshi/nxtcore/nxtrestfwk/restactivator" // exit 2 Thank you, Yuning |