Page 1 of 1

cannot get the login page

PostPosted:Tue Apr 07, 2015 12:15 pm
by nigyel
Hello,

I am using openKm version 6.3.0 and it has been working fine till now. All of a sudden without any changes I notice that the login page loads very very slow and sometimes it doesnot loads at all...
I am attaching the catalina logs below. Please help...
Code: Select all
2015-04-07 17:55:19,351 [Thread-16] WARN  com.openkm.extractor.PdfTextExtractor- Failed to extract PDF text content
org.apache.pdfbox.exceptions.WrappedIOException
	at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:240)
	at com.openkm.extractor.PdfTextExtractor.extractText(PdfTextExtractor.java:64)
	at com.openkm.extractor.RegisteredExtractors.getText(RegisteredExtractors.java:214)
	at com.openkm.extractor.RegisteredExtractors.getText(RegisteredExtractors.java:173)
	at com.openkm.dao.NodeDocumentDAO.textExtractorHelper(NodeDocumentDAO.java:1343)
	at com.openkm.extractor.TextExtractorWorker.processSerial(TextExtractorWorker.java:164)
	at com.openkm.extractor.TextExtractorWorker.processQueue(TextExtractorWorker.java:149)
	at com.openkm.extractor.TextExtractorWorker.run(TextExtractorWorker.java:100)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at bsh.Reflect.invokeMethod(Reflect.java:134)
	at bsh.Reflect.invokeObjectMethod(Reflect.java:80)
	at bsh.BSHPrimarySuffix.doName(BSHPrimarySuffix.java:176)
	at bsh.BSHPrimarySuffix.doSuffix(BSHPrimarySuffix.java:120)
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:80)
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
	at bsh.Interpreter.eval(Interpreter.java:645)
	at bsh.Interpreter.eval(Interpreter.java:739)
	at bsh.Interpreter.eval(Interpreter.java:728)
	at com.openkm.util.ExecutionUtils.runScript(ExecutionUtils.java:112)
	at com.openkm.core.Cron$RunnerBsh.run(Cron.java:103)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.OutOfMemoryError: Java heap space
	at org.apache.pdfbox.io.RandomAccessBuffer.expandBuffer(RandomAccessBuffer.java:151)
	at org.apache.pdfbox.io.RandomAccessBuffer.write(RandomAccessBuffer.java:131)
	at org.apache.pdfbox.io.RandomAccessFileOutputStream.write(RandomAccessFileOutputStream.java:108)
	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
	at java.io.FilterOutputStream.close(FilterOutputStream.java:157)
	at org.apache.pdfbox.pdfparser.BaseParser.parseCOSStream(BaseParser.java:448)
	at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:552)
	at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:184)
	... 23 more
Thanks,
Nig.

Re: cannot get the login page

PostPosted:Wed Apr 08, 2015 2:33 am
by nigyel
I tried to increase the heap size but still the same....

Re: cannot get the login page

PostPosted:Thu Apr 09, 2015 7:26 am
by jllort
Describe your hardware and OS.
Post here your setenv.sh or setenv.bat configuration parameteres.
What kind of files are you indexing ( size, and number of pages ).
Do you got other software installed on your computer ? have enought resources free ?

Re: cannot get the login page

PostPosted:Thu Apr 09, 2015 12:18 pm
by nigyel
Dearv Jllort,

Please find below response to your queries:
Describe your hardware and OS.
Ubuntu 14.04 installed in DellPoweredge R610
Post here your setenv.sh or setenv.bat configuration parameteres.
attached.
What kind of files are you indexing ( size, and number of pages ).
only .pdf files 130000 files
Do you got other software installed on your computer ? have enought resources free ?
No, HDD is 1TB and system RAM is 16GB.

So far for the past 8 months everything was working fine and all of a sudden the system became slow and also the login page shows up sometimes, even if it loads the speed is very very slow.. I thought of reinstalling the openKM but the export repository is not working, just seeing connecting to localhost in the frontend and in backend noting shows up

please help.

Thanks,
Ng

Re: cannot get the login page

PostPosted:Sat Apr 11, 2015 9:16 am
by jllort
In your setenv.sh
Code: Select all
JAVA_OPTS="$JAVA_OPTS -Xms256m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC"
change to
Code: Select all
JAVA_OPTS="$JAVA_OPTS -Xms256m -Xmx4096m -XX:PermSize=256m -XX:MaxPermSize=1024m -XX:+UseConcMarkSweepGC"
You openkm was using only 2GB of ram a 500mb of heap ( probably now for some reason while processing some file is needed more heap ). Depending the number of concurrent users and what are you doing this parameters should be increased, take it as starting point.

Re: cannot get the login page

PostPosted:Mon Apr 13, 2015 3:14 am
by nigyel
Dear Jllort,

Thank you for the solution. I changed the settings in setenv.sh. Now I can login from my local PC, but cannot from other machine, login page not coming up. I will check my repository export and update you.I am attaching the latest logs.
Regards, :)
Ng.

Re: cannot get the login page

PostPosted:Mon Apr 13, 2015 11:13 am
by nigyel
Dear Jllort,

Everything seems to be normal now, but cannot get the login screen from other machines...
Any idea where to check?

Thanks,
Ng.

Re: cannot get the login page

PostPosted:Mon Apr 13, 2015 11:39 am
by nigyel
Dear Jllort,

I disabled the firewall and can access now.

Thanks,
Ng.