OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



OCS is working slowly

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

OCS is working slowly

Postby Sinbademik » Tue Oct 18, 2011 6:09 am

Hi all...

We have prepared a conference site with OCS. (http://web.deu.edu.tr/ilahiyat/ocs)
Everything is good but the site is responding too late.
We also installed OJS in the same server and it is working properly.

We locally patched and upgraded ocs from 2.3.3-1 to 2.3.4 to fix the problem. At the end of the process both ocs current version did not change in "system information" page and the slowness of the site is still in progress.

How can we solve these problems? Can you help us?

Best regards,

Hadi SOFU



system information:
OCS Current version 2.3.3.1
OS platform SunOS
PHP version 5.2.9
Apache version Apache/2.0.63
Database driver mysql
Database server version 5.0.51-log
Sinbademik
 
Posts: 2
Joined: Thu Sep 29, 2011 4:39 am

Re: OCS is working slowly

Postby michael » Tue Oct 18, 2011 10:39 am

Hi Hadi SOFU,

One likely reason why your version number was not updated to 2.3.4 is that the upgrade process timed out and didn't actually complete until the end.

The OCS 2.3.4 upgrade will try and re-index all of your conference content as part of a bug fix included in the release. If you have a lot of content, this may take some time to finish and PHP may be timing out before it has a chance to complete this task.

The version number is updated at the end of the entire upgrade process, so if the index rebuild times out, your version number will not be updated correctly.

You can modify your server settings and ensure that PHP's execution and memory limits are sufficiently high:

Code: Select all
    max_execution_time = 450     ; Maximum execution time of each script, in seconds (30)
    max_input_time = 90 ; Maximum amount of time each script may spend parsing request data (60)
    memory_limit = 256M      ; Maximum amount of memory a script may consume (128MB)


You can find these in your php.ini (don't forget to restart the webserver after making changes).

Alternatively, you can remove the index rebuild step from the upgrade process, complete the upgrade without it, and then try to manually rebuild the index after the upgrade is complete:

1) After unzipping the OCS 2.3.4 source or patching your old install with the OCS 2.3.4 upgrade patch, go to the bottom of dbscripts/xml/upgrade.xml.

You will find the following:
Code: Select all
   <upgrade minversion="2.0.0.0" maxversion="2.3.3.9">
      <data file="dbscripts/xml/upgrade/2.3.4_update.xml" />
      <code function="rebuildSearchIndex" />
      <note file="docs/release-notes/README-2.3.4" />
   </upgrade>


2) Remove the line: <code function="rebuildSearchIndex" />

3) Run the upgrade.

4) Once the upgrade is complete and you can verify the correct version number, manually rebuild the search index from the command line: php tools/rebuildSearchIndex.php

Re: OCS being slow, can you please be more specific? Which pages are being slow? Is the whole site affected?

Cheers,
Michael
michael
 
Posts: 403
Joined: Thu Mar 29, 2007 2:09 pm

Re: OCS is working slowly

Postby Sinbademik » Tue Oct 18, 2011 7:59 pm

Dear Michael;
Many thanks for your reply.
Our Data Processing Center, as soon as possible, will apply your recommendations about upgrade problem.

Regarding slowness..:
we were getting the following error each time in the past both in the front-end and back-end processes:
"Fatal error: Maximum execution time of 30 seconds exceeded in ..................inc.php on line ...."

To get rid of this error, I wrote the following code in the first line of all the .php files that gives such error:
"set_time_limit(600);"

Now, we don't get this error but the whole site is working slowly.

Best regards,

Hadi SOFU
Sinbademik
 
Posts: 2
Joined: Thu Sep 29, 2011 4:39 am

Re: OCS is working slowly

Postby michael » Wed Oct 19, 2011 10:14 am

Hi Hadi SOFU,

Which pages were timing out previously, before you increased the execution time limit?

Thanks,
Michael
michael
 
Posts: 403
Joined: Thu Mar 29, 2007 2:09 pm


Return to OCS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 1 guest