Powered By Blogger

Thursday, August 4, 2016

Tomcat debug ALfresco

Hi Team ,
Follow below steps for setting up the debugger when Alfresco is running as service in the Windows environment.

1.       Navigate the folder where alfresco is been installed in the Command prompt.
Cd D:\Installs\alfrescoServer\tomcat\bin
2.       Now run the below command
.\tomcat7w.exe //ES//alfrescoTomcat
3.       It will open the below popup

4.       In this open the tab Java and add the below values in the Java options
-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n


5.       Click Apply and OK. By doing this we have made service aware of debugging.
6.       Restart the alfresco server.
7.       In Eclipse Connect to the remote application by configuring the port 8000

8.       Click on Debug and Happy debugging J


Monday, August 1, 2016

Too manu open files

Another important thing to verify is that, your process is not leaking file descriptors or handles, well that's a tedious thing to find out, but you can use lsof command to check how many open file handles is owned by a particular process in UNIX or Linux

Read more: http://javarevisited.blogspot.com/2013/08/how-to-fix-javanetsocketexception-too-many-open-files-java-tomcat-weblogic.html#ixzz4G4VH3yK7