You can use JAVA_TOOL_OPTIONS
.
Example:
export JAVA_TOOL_OPTIONS=-Xmx512m
It has been mentioned in some comments, and in another answer.
The OP's question is quite old, but as it is the first google result for the question, I thought i would add the answer here for clarity's sake.