Java VM heap exhausted at internal function: %1

Item Value
SQLCODE -165
Constant SQLE_JAVA_VM_HEAP_EXHAUSTED
SQLSTATE WP008
Sybase error code 13740
ODBC 2 State ERROR
ODBC 3 State ERROR
Parameter 1 The internal function is for debugging purposes.

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