Posted by Cameron Stokes
on August 16, 2008
howto,
mac os x /
No Comments
I constantly have to look these up so am putting these here as a reference for myself.
| Shortcut |
Copies… |
Where… |
| Command + Shift + 3 |
Entire Screen |
File |
| Command + Control + Shift + 3 |
Entire Screen |
Clipboard |
| Command + Shift + 4 |
Cropped Area |
File |
| Command + Control + Shift + 4 |
Cropped Area |
Clipboard |
| Command + Shift + 4 + Space Bar |
Window, Menu, Desktop Icon, or Menu Bar |
File |
| Command + Control + Shift + 4 + Space Bar |
Window, Menu, Desktop Icon, or Menu Bar |
Clipboard |
Tags: howto, mac os x
Posted by Cameron Stokes
on July 27, 2008
geek,
howto,
technical /
No Comments
I ran into a fairly ironic error message when using the SAP Memory Analyzer to do some memory analysis of one of our applications at work. The reason given for the error was “Java heap space”.

"Java heap space" error from SAP Memory Analyzer.
The heap dump I was trying to analyze was around 1 gigabyte so I took the error to mean that the process ran out of memory. I finally figured out how to change the memory settings for the Mac OS X package by finding how to do the same thing for Eclipse (I’m only 2 months in using OS X as my primary OS).
In any case, to increase the heap size available to the program you have to edit the MemoryAnalyzer.ini file in the ./MemoryAnalyzer/Contents/MacOS/ folder. You can do this through Finder by right-clicking on the MemoryAnalyzer package and clicking Show Package Contents.
Here’s what my MemoryAnalyzer.ini looked like after the change.
-showsplash
org.eclipse.platform
-vmargs
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xms40m
-Xmx1024m
-XX:MaxPermSize=256m
-Dorg.eclipse.swt.internal.carbon.smallFonts
Changing the maximum heap setting value -Xmx to 1024m allowed me to open the heap dump without a problem.
Tags: geek, howto, java, mac os x