Java Function in Teradata is taking too long to execute

Database
Enthusiast

Java Function in Teradata is taking too long to execute

I've created a Java Function and imported it in TeraData

But after few thousand executions, the function becomes too slow.

You can find below output from TOP command.

USER       PR   NI VIRT    RES  SHR  S %CPU %MEM    TIME+     COMMAND

tdatuser  23   8  815m  33m 1976 S  200   1.4          1835:21  udfsectsk

But Once I restart the system it starts working fine again. Is there any config that i need to change.

Pleae suggest.

Regards,

Parth Malhan