stoo, I found the culprit on Kjell Iver's forum. In the skin template 'mapGoogleJavascript' you have this line which makes no sense, as it's not used later on. This almost doubles the result set already in memory, as the existing version already in IPSMember's cache isn't using the same tables. $memberProfile = IPSMember::load($memberMarkers, 'profile_portal');
Here's an overview of the memory usage. "Compiled MemberMap" is something I threw in, from the beginning to the end of 'doMap'. MEMORY USAGE
Loaded Language File: cache/lang_cache/2/core_public_global.php 159,07K
Registry initialized 11,7MB
Controller getCommand executed 11,86MB
Everything up until execute call 11,86MB
Loaded Language File: cache/lang_cache/2/membermap_public_map.php 18,08K
BBCodes initialized 13,1K
BBCode classes loaded 662,27K
publicOutput: Loaded skin file - skin_global 1,45MB
publicOutput: Loaded skin file - skin_membermap 226,54K
Compiled MemberMap 26,97MB
publicOutput: Loaded skin file - skin_ccs_global 952,8K
Loaded Language File: cache/lang_cache/2/promenu_admin_promenu.php 97,65K
Loaded Language File: cache/lang_cache/2/core_public_login.php 23,76K
publicOutput: Loaded skin file - skin_platform_global 8,8K
publicOutput: Loaded skin file - skin_featuredcontent 166,11K
Loaded Language File: cache/lang_cache/2/featuredcontent_public_featuredcontent.php 14,47K
publicOutput: Loaded skin file - skin_promenu_plus 135,98K
publicOutput: Loaded skin file - skin_boards 904,48K
publicOutput: Loaded skin file - skin_rss 159,23K
Loaded Language File: cache/lang_cache/2/classifieds_public_lang.php 81,53K
publicOutput: Loaded skin file - skin_classifieds_hooks 93,08K
publicOutput: Loaded skin file - skin_ipchat 265,59K
Total Memory Used: 44,76MB (Peak:45,53MB) One other thing I spotted is that you're running IPSMember::load() on getMarkers too. I don't see why that info couldn't be fetched in the initial query as additional joins instead.