Hi gurus, Many Thanks again for helping me with the problem... Alexander , Hong Zhou, Veda Narayanan, Vladimir, Man Chi Ly, Uncle George.. thanks to all.
I have finally managed to solve the problem. The shared memory was not getting detached. The pointer to the shared memory was being type casted to int, float etc and the detach statement was executed on that pointer. JVM was not understanding it and hence the oritinal void pointer was not detached. This had created the whole problem. Regards, sourabh --- Uncle George <[EMAIL PROTECTED]> wrote: > Since u know that mem usage is only going up, then > all u have to do is > count the allocations v. freed. A printf("Allocated > meory at %p\n", > mem_pointer) for every alloaction, and a > printf("Freeing memory at > %p\n", mem_pointer ) for every free. u just then > have to match the > pointers, and see which ones are allocated, but have > no corresponding > de-allocation. > Sometimes there are a lot of alloc/free requests, > and maybe a routine to > handle the matching is needed ( ie a 10k table of > allocateed pointer, > where new allocations get placed in the table, and > free'd ones get > removed. ) ( ie add_mem_ptr( ptr, > __FILE__,__LINE__), free_mem_ptr( ptr, > __FILE__, __LINE__) ) > > good luck > > > kulkarni sourabh wrote: > > > > Hi Uncle George, > > I also tried with the same thing of top and GC > > __________________________________________________ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com ---------------------------------------------------------------------- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]