Java seems to ignore -Xms and -Xmx options

-Xmx specifies the max Java heap allocation (-Xms specifies the min heap allocation). The Java process has its own overhead (the actual JVM etc), plus the loaded classes and the perm gen space (set via -XX:MaxPermSize=128m) sits outside of that value too. Think of your heap allocation as simply Java’s “internal working space”, not the … Read more

Extract text from doc and docx

Here i have added the solution to get the text from .doc,.docx word files How to extract text from word file .doc,docx php For .doc private function read_doc() { $fileHandle = fopen($this->filename, “r”); $line = @fread($fileHandle, filesize($this->filename)); $lines = explode(chr(0x0D),$line); $outtext = “”; foreach($lines as $thisline) { $pos = strpos($thisline, chr(0x00)); if (($pos !== FALSE)||(strlen($thisline)==0)) … Read more