Archive for December, 2011

Enable log for queries on MySQL

December 23, 2011
Enable log for queries on MySQL

Generally we will get some situations where we need to see the each and every query hitting the MySQL server, especially while debugging. Viewing each & every query hitting any MySQl database is possible by enabling the logs in MySQL configuration. Go to the MySQL home directory where you installed MySQL. In my case it [...]

Parse the XML using DOM Parser in Java

December 8, 2011
Parse the XML using DOM Parser in Java

From Wikipedia http://en.wikipedia.org/wiki/Java_API_for_XML_Processing#DOM_interface, we can read like: The DOM interface is perhaps the easiest to understand. It parses an entire XML document and constructs a complete in-memory representation of the document using the classes modeling the concepts found in the Document Object Model(DOM) Level 2 Core Specification The following is the Java code to parse [...]

Fixing ‘Could not reserve enough space for object heap’ With Ant tool

December 6, 2011
Fixing 'Could not reserve enough space for object heap' With Ant tool

Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. This happens only because there is no enough space for ANT build tool to run the scripts. So first fix the heap space. On UNIX: set ANT_OPTS = -Xms16m -Xmx512m On WINDOWS: Add environment [...]

 

If you have a Tip, Comment, Article or anything you want to share, please send it to: i@poisure.com