Hi, > well but the probem is that the moment my program crosses the memory > limit set by ulimit, the program gets killed. :-(
Your program might be suffering from a bad memory leak (the program is allocating memory on heap without properly freeing them - for example). You might want to re-compile the program with debugging switch (-g for g++) and run the same under valgrind[1] and investigate the code thats leaking memory. You can also try running the program linked with dmalloc[2] or libduma[3]. In simple, there is no solution in the shell than to fix the memory leak bug in your program and rebuild the same. [1] http://www.valgrind.org/ [2] http://www.dmalloc.com/ [3] http://duma.sourceforge.net/ Cheers! -- Chandrashekar Babu Experienced FOSS Technologist and Corporate Trainer. http://www.chandrashekar.info/ _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc ILUGC Mailing List Guidelines: http://ilugc.in/mailinglist-guidelines
