some question about Solaris memory usage

Dear all

Recently, my team is developing on the Solaris platform and I meet some problem about memory.

Let me explain a little how our application works, After I start the application, I will use a simulator to "create" 50000 session on the application, then, start transaction handling, at the end, I will "delete" these 50000 session

My problem is that, the memory occupation of our application seems increasing all the time. I use purify to check the single transaction running and find no memory leak. and the memory occupation looks like "stage". For example, for the first 10 mins, the memory increase from 54M -> 290M gradually, I may understand that for creating session, system may malloc memory. However, after 10 mins, the memory jumps from 290 M to 550M suddenly. and After 1.5 H, it jumps form 550M to 800M. For every 1.5 H, there are 250M memory are used.

This phenomenon doesn't look like memory leak. I think if the memory leak happens, the memory will grow slowly. It looks like some memory assignment mechanism in the Solaris system.

So, Is there anyone could help and explain?

many many thanks!

Cheers

Shen

[1185 byte] By [lishena] at [2007-11-27 4:09:33]
# 1

Memory leaking only refers to no freeing memory after a malloc, but its also misused when memory gets fragmented and malloc isn't able to find a piece of memory to recycle that can hold the required size. But also keep in mind, that memory that was unallocated by the application isn't in fact given back to the kernel. And not many implementation do that because its quite expensive in kernel time to do that. Please see OpenBSD 3.7/3.8 for more information since they have a "working" implementation.

To solve/reduce your problem, you need to debug your application and Sun Studio can help you with that. (or dtrace) And if you don't have the expertise you can also ask Sun for support, but its going to cost you money.

hspaansa at 2007-7-12 9:15:00 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...