---
title: "[zz]What does anon mean for pmap?"
author: "iunknown"
date: "2010-02-26T21:12:31Z"
tags: []
categories: ["编程语言"]
slug: "zz-what-does-anon-mean-for-pmap"
draft: false
lastmod: "2010-02-26T21:12:31Z"
id: 603998
url: "https://iunknown.iteye.com/blog/603998"
---

<http://stackoverflow.com/questions/1477885/trying-to-locate-a-leak-what-does-anon-mean-for-pmap>


Anon blocks are "large" blocks allocated via malloc or mmap -- see the manpages. As such, they have nothing to do with the Java heap (other than the fact that the entire heap should be stored in just such a block).

In my experience, thread stacks also use anon blocks. If you see a lot of anon blocks that all have the same size, and that size is 512k to 4Mb (the example below is repeated over a dozen times for a Tomcat process that I have running), that's the likely cause. Depending on the program, you may have up to a few dozen of these; if you're seeing thousands, it means you have a problem with threading.

b089f000    504K rwx--    
b091d000     12K -----    
b0920000    504K rwx--    
b099e000     12K -----    
b09a1000    504K rwx--    
b0a1f000     12K -----