Solved the problem of slow access speed in Mantis

Mantis has been used for a period of time. Because of the slow access speed, neither developers nor testers like to use it.
Even if it is used, it is hard to bear. As a technician, I really can't stand it and decide to solve it.



1. Problem phenomenon After
using for a period of time, the page response
is very slow when submitting questions, adding comments, modifying status, etc., and it takes more than 30s for simple defects to be submitted successfully without adding attachments
. There is no email reminder after adding comments, modifying status, etc.


2. The cause of the problem   
occurs in the above situation. It can be determined that the problem of sending emails from Mantis causes the burden on the database to increase, the time for
writing data is too long, and the access to Mantis is getting slower and slower. And it should be that the sending mail is to connect to the mail sending server,
encounter an exception (may be a timeout), and try to connect multiple times.



3. Solve the problem

a. Clear the mail sending table mantis_email_table ,

sql> delete from mantis_email_table


b. Cancel the method of sending mail
Open **/mantis/core/email_api.php file, find the function email_send()
and delete all the contents of the method body, Add the statement " return true; "

c. Modify the memory_limit of the PHP configuration file (the default is 8M, and it can be modified to 128M). 
The file is /etc/php.ini, and the directory names of different operating systems are not necessarily the same.


If you modify For the last item, restart the service.

Finally, log in to the Mantis system and feel whether it is smooth!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326123630&siteId=291194637