Your comments

You could also try running "nice" ( i am assuming you are running from linux, from your comment of bash ) you could give it a higher priority in addition to allocating more memory: Google "linux nice command"

http://askubuntu.com/questions/48708/change-niceness-priority-of-a-running-process