Posts

Showing posts from June, 2015

#SRVE0255E | Set a Custom 404 error message in WebSphere

Image
If the AppServer is down or stopped for the maintenance, We can set a custom error page in WebServer using redirect. A webserver cannot override  the messages if it is written by the appserver. So it is not possible to set any custom page if application is down in the backend. But we can do this.. We can add a custom property which says the server is under maintenance. For example: Go to your appserver console -> click on servers -> server types -> application servers -> server1 -> webcontainer settings ->webcontainer -> custom properties -> click on new and add custom property. Give  Name :  com.ibm.ws.webcontainer.webgroupvhostnotfound   value : Server is under Maintenance, we regret any inconvenience caused save this and restart server instance  [server1] That's it.. If your application is down, the error message, which you configured in custom property, will display to the user.

What are Memory Leaks in JVM #Java

Image
First of all Memory leak is not sweeping Unused objects, It is Sweeping referenced objects. Check the clear definition here  Memory leak  :: is  a common memory problem that also leads to OutOfMemory error.  In Java ,  memory leaks can not happen as  it has automatic Garbage Collection (GC).  GC  removes  unused objects that are not referenced anymore. But if an object is not used, but is still referenced, GC does not remove it, which leads to memory leaks in JVM .