Use this library to check your SRAM / Stack memory usage.
Some different ways to check memory usage on an Arduino.