Java VM heap exhausted at internal function: %1

Error constant SQLE_JAVA_VM_HEAP_EXHAUSTED
ODBC 2 State ERROR
ODBC 3 State ERROR
Parameter 1 The internal function is for debugging purposes.
Severity 16
SQLCODE –165
SQLSTATE WP008
Sybase error code 13740
Probable cause

The amount of space allocated for the Java VM is insufficient to continue allocating new objects. Increase the size by using: SET OPTION PUBLIC.java_heap_size = nnnnnnnn.