"Java Heap space" Error

Since the process is run, an error is received as seen in the screenshot below, and in the logs
“1)[tomcat-util.jar:9.0.48]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]
Caused by: java.lang.OutOfMemoryError: Java heap space " is received. Restarting the Worker fixes the problem.