I tried importing TWX Analysis Extension 52.2 into Thingworx Foundation and while importing I am getting the error as shown below:
Any help here is really appreciated.
I believe your server did not have enough memory to manage some particularly memory-consuming task, or you have a memory leak.
You may change the memory settings of your tomcat with -Xmx and -Xms VM arguments, see Java VM options for details.
Try modify settings
-server -Xms1536m -Xmx1536m
-XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m