OutOfMemoryError PermGen
Introduction
OutOfMemoryError: PermGen Space
Avoiding the error
1. Increasing the PermGen Memory Size
-XX:MaxPermSize=128m
default is 64m
2. Enable Sweeping
Hypertext Transfer Protocol (HTTP) is stateless: a client computer running a web browser must establish a new Transmission Control Protocol (TCP) network connection to the web server with each new HTTP GET or POST request.
4SpringMVC FileUpload with ajax & JQuery
If you want to upload a file in a SpringMVC application with ajax you need to do following things
Server Side
On server side there are many ways but MultipartHttpServletRequest is easiest way to do that.
InnoDB vs MYISAM An Accumulation
Introduction
InnoDB
InnoDB is a storage engine for MySQL. MySQL 5.5 and later use it by default. It is included as standard in most binaries distributed by MySQL AB, the exception being some OEM ersions.
Can static methods be overrriden?
It is not possible to override static methods. If a subclass defines a static method with same signature as a static method which is defined parent class. Method in child class will be hiding the method in parent class. This phenomena is called method hiding.
OutOfMemoryError PermGen
Here I look into what is meant when a Java program runs into a OutOfMemoryError: PermGen Space error. I first explain what the permanent generation heap space is, after which I explain the usual cause of the Permgen Space error and I give some pointers on how to avoid it.
Base 64 Encoding and Decoding
Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation.
The term Base64 originates from a specific MIME content transfer encoding.
i wrote a simple plugin for openfire. It is very simple one.It just catches the traffic of openfire and prints it to info.log. It has been very much helpful in working and debugging with applications for openfire.
i found good material on using maven with scala i am resharing it for further use.
Introduction to maven
Maven is a builder like make or ant, written in java. It's a commande line tool, IDE (Eclipse, Netbeans, IDEA) have plugins to handle and integrate project powered by maven.
The SCP protocol is a network protocol, based on the BSD RCP protocol,[1] which supports file transfers between hosts on a network.
Last day i was configuring a ubuntu system as my work machine. First of all i tried to install eclipse an IDE most basic requirement for a developer's machine.
1i had to execute few linux commands remotely on some systems in my application. so i connected
to that system on ssh port using library jsch and then executed those commands. i have written a sample program for you. Infact it is modified version of the example given on jsch site.
This is my first blog!
View comments