ShokoAnime / ShokoServer

Repository for Shoko Server.
https://shokoanime.com/
MIT License
404 stars 74 forks source link

JMM Server 100% CPU #74

Closed jmediamanager closed 9 years ago

jmediamanager commented 10 years ago

Reported by misakitchi, Apr 19, 2014

What steps will reproduce the problem?

  1. I launch JMM server: all is good
  2. After 5-6 minutes JMM Server will suddenly use almost 100% CPU!!

What version of the product are you using? On what operating system? JMM Server 3.1.32 + SQL2008 Windows 7 64bits (French)

Please provide any additional information below. If i go back to JMM Server 3.1.17, i have not this problem JMM Desktop is not launched i try with MySQL and SQLite and same issue...

misakitchi commented 9 years ago

OK its working!!! :) But for how long?!!

Animeimp commented 9 years ago

Check services and make sure that that the SQL agent manager is set to auto start, and is running. Then you should have to do it ever again.

Also make sure the SQL agent service is running under your username and password rather than the default account.

On Aug 3, 2015, at 19:27, misakitchi notifications@github.com wrote:

OK its working!!! :) But for how long?!!

― Reply to this email directly or view it on GitHub.

misakitchi commented 9 years ago

SQL Agent Manager is disable in my version of SQL... :( How can i automatise the command "delete from LogMessage" in SQL?! Thx

misakitchi commented 9 years ago

I still need to do a manual cleaning of my Database, because SQL Agent Manager is disable in my version of SQL... Any news for this bug?

Here the request i use: USE JMMServer --SELECT count(*) FROM LogMessage DELETE FROM LogMessage

Help!!

PS: i try to understand this example but it was too complicated for me... https://msdn.microsoft.com/en-us/library/ms191439.aspx

USE msdb ; GO -- creates a schedule named NightlyJobs. -- Jobs that use this schedule execute every day when the time on the server is 01:00. EXEC sp_add_schedule @schedule_name = N'NightlyJobs' , @freq_type = 4, @freq_interval = 1, @active_start_time = 010000 ; GO -- attaches the schedule to the job BackupDatabase EXEC sp_attach_schedule @job_name = N'BackupDatabase', @schedule_name = N'NightlyJobs' ; GO