Author: europheus

Systemd services do not respect the settings in limits.conf or limits.d files.

We ran into a need to increase file descriptors for RabbitMQ running on RHEL 6. The simple solution was to add a file owned by root to /etc/security/limits.d/ 85-rabbitmq.conf # Default limit for rabbitmq which needs more # file handles than the default user settings rabbitmq soft nofile 49152 rabbitmq hard nofile 49152 And after …

Read More Systemd services do not respect the settings in limits.conf or limits.d files.

OpenJPA and MySQL Timestamps

Reading in MySQL Timestamps that default to ‘0000-00-00 00:00:00’ using JPA can result in errors if your MySQL connection is not properly configured. You may run into an exception such as this: java.sql.SQLException: Cannot convert value ‘0000-00-00 00:00:00’ from column 5 to TIMESTAMP. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) The solution here is easy enough, …

Read More OpenJPA and MySQL Timestamps