I keep getting this error:
what possible reason that cause this error ?
My boss dont want increase java memory, so i had to change my code.
My code have sql statement and my database table has 60000 rows(record) and keep increasing.
I call this to retrieve data from table:
so in that Billing class has a method called getTotalAmount which doing the sql statement and sum the amount for certain column amount and return it.
Still, it can't runs and give same error.
Any idea ?
thanks in advance
from
Nick
Code:
java.lang.OutOfMemoryError: Java heap space
My boss dont want increase java memory, so i had to change my code.
My code have sql statement and my database table has 60000 rows(record) and keep increasing.
I call this to retrieve data from table:
Code:
double total = Billing.getTotalAmount(String str);
Still, it can't runs and give same error.
Any idea ?
thanks in advance
from
Nick
Comment