22 lines
714 B
SQL
22 lines
714 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`mysqlPreparedCount_check`()
|
|
BEGIN
|
|
DECLARE vPreparedCount INTEGER;
|
|
|
|
SELECT VARIABLE_VALUE INTO vPreparedCount
|
|
FROM INFORMATION_SCHEMA.GLOBAL_STATUS
|
|
WHERE VARIABLE_NAME LIKE '%prepared_stmt_count%';
|
|
|
|
IF(vPreparedCount >= 40000) THEN
|
|
CALL `vn`.`mail_insert`('cau@verdnatura.es',
|
|
NULL,
|
|
'Problemas BBDD prepared_stmt_count',
|
|
CONCAT('Existen problemas con el servicio de Logiflora, prepared_stmt_count con valor: ',
|
|
vPreparedCount,
|
|
', está próximo a exceder su límite. \r\n Hay que reiniciar el servicio LF.VMP.Service del servidor a3.')
|
|
);
|
|
END IF;
|
|
|
|
END$$
|
|
DELIMITER ;
|