Forum
Welcome, Guest
Please Login to access forum.
message log indicating attempt to disable memory by JSitemap (1 viewing) 
Go to bottom
TOPIC: message log indicating attempt to disable memory by JSitemap
#5748
Graham
Fresh Boarder
Posts: 2
User Offline
message log indicating attempt to disable memory by JSitemap Karma: 0  
Hi All
In the server message log (var/log/messages) I see a lot of the following:

ALERT - script tried to disable memory_limit by setting it to a negative value -1 bytes which is not allowed (attacker 'xx.xxx.xx.xx', file '/xxx/xxxx/public_html/home/components/com_jmap/jmap.php', line 14)

jmap.php reads:
Code:

if($cParams->get('resources_limit_management', 1)) { ini_set('memory_limit', '-1'); ini_set('max_execution_time', 0); ini_set('pcre.backtrack_limit', -1);
Any thoughts?
 
Logged Logged  
  The administrator has disabled public write access.
#5749
John Dagelmore
Admin
Posts: 3873
User Online Now
Re:message log indicating attempt to disable memory by JSitemap Karma: 84  
Hi,

that happens because by default the memory management is done by the component.

If you don't want this you can change the following parameter to 'Server Mode' so to allow the server to decide the memory limit management.

Best regards
 
Logged Logged  
  The administrator has disabled public write access.
#5750
Graham
Fresh Boarder
Posts: 2
User Offline
Re:message log indicating attempt to disable memory by JSitemap Karma: 0  
What is your opinion on whether the server or the component should control memory?
I am having a general shortage of memory on the vps which I am sorting, but also what is the effect of the attempt to set memory being logged as a spurious attack?
 
Logged Logged  
  The administrator has disabled public write access.
#5751
John Dagelmore
Admin
Posts: 3873
User Online Now
Re:message log indicating attempt to disable memory by JSitemap Karma: 84  
Never faced such setting as an issue, maybe you have some particular log setup on the server.
Normally there is no difference to set the memory limit by a script or by the server settings. If you have not a large sitemap you can leave it as 'server mode' and simply avoid the logging.
 
Logged Logged  
  The administrator has disabled public write access.
Go to top