From 4882058f0fa219d73583975b745822584d337fab Mon Sep 17 00:00:00 2001 From: Kohei Tamura Date: Tue, 27 Dec 2016 16:44:58 +0900 Subject: [PATCH] Add a servlet which can cause DB connection leaks. --- src/main/resources/indexpage_en.properties | 3 ++- src/main/resources/indexpage_ja.properties | 3 ++- src/main/resources/messages_en.properties | 4 +++- src/main/resources/messages_ja.properties | 4 +++- src/main/webapp/WEB-INF/jsp/index.jsp | 4 ++-- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/main/resources/indexpage_en.properties b/src/main/resources/indexpage_en.properties index 031a0067..7aca37e7 100644 --- a/src/main/resources/indexpage_en.properties +++ b/src/main/resources/indexpage_en.properties @@ -23,7 +23,8 @@ function.description.native.library.error=Native library error occurs after clic function.name.network.socket.leak=Network Socket Leak function.description.network.socket.leak=Network socket leak occurs every time you load the page. function.name.database.connection.leak=Database Connection Leak -function.description.database.connection.leak=Database connection leak occurs every time you load the page. +function.description.database.connection.leak=Database connection leak occurs every time you load the page.
\ +(* Database connection leak occurs if using external RDBMS such as MySQL) function.name.file.descriptor.leak=File Descriptor Leak function.description.file.descriptor.leak=File descriptor leak occurs every time you load the page. function.name.stop.the.world=Stop the World diff --git a/src/main/resources/indexpage_ja.properties b/src/main/resources/indexpage_ja.properties index d2511d0d..fd291e33 100644 --- a/src/main/resources/indexpage_ja.properties +++ b/src/main/resources/indexpage_ja.properties @@ -23,7 +23,8 @@ function.description.native.library.error=\u3053\u306e\u30ea\u30f3\u30af\u3092\u function.name.network.socket.leak=\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bd\u30b1\u30c3\u30c8\u30ea\u30fc\u30af function.description.network.socket.leak=\u30da\u30fc\u30b8\u3092\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3073\u306b\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bd\u30b1\u30c3\u30c8\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002 function.name.database.connection.leak=\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u30ea\u30fc\u30af -function.description.database.connection.leak=\u30da\u30fc\u30b8\u3092\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3073\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002 +function.description.database.connection.leak=\u30da\u30fc\u30b8\u3092\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3073\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002
\ +(* \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u30ea\u30fc\u30af\u306f\u3001MySQL\u306a\u3069\u306e\u5916\u90e8RDBMS\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306b\u306e\u307f\u767a\u751f\u3057\u307e\u3059) function.name.file.descriptor.leak=\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u30ea\u30fc\u30af function.description.file.descriptor.leak=\u30da\u30fc\u30b8\u3092\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3073\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002 function.name.stop.the.world=\u30b9\u30c8\u30c3\u30d7 \u30b6 \u30ef\u30fc\u30eb\u30c9 diff --git a/src/main/resources/messages_en.properties b/src/main/resources/messages_en.properties index feb97288..9b5b9644 100644 --- a/src/main/resources/messages_en.properties +++ b/src/main/resources/messages_en.properties @@ -36,7 +36,9 @@ label.submit=submit label.reversed.name=Reversed Name msg.unknown.exception.occur=Unknown exception occurs. -msg.socket.leak.occur=A network socket leaks. +msg.socket.leak.occur=Network socket leak occurs every time you load this page. + +msg.db.connection.leak.occur=DB connection leak occurs every time you load this page. msg.update.records=Updated {0} records. title.sql.deadlock.page=Reset all users password diff --git a/src/main/resources/messages_ja.properties b/src/main/resources/messages_ja.properties index f333536c..5baca290 100644 --- a/src/main/resources/messages_ja.properties +++ b/src/main/resources/messages_ja.properties @@ -36,7 +36,9 @@ label.submit=\u9001\u4fe1 label.reversed.name=\u9006\u8ee2\u3057\u305f\u540d\u524d msg.unknown.exception.occur=\u4e0d\u660e\u306a\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002 -msg.socket.leak.occur=\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bd\u30b1\u30c3\u30c8\u304c\u30ea\u30fc\u30af\u3057\u307e\u3057\u305f\u3002 +msg.socket.leak.occur=\u3053\u306e\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3073\u306b\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bd\u30b1\u30c3\u30c8\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002 + +msg.db.connection.leak.occur=\u3053\u306e\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3073\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002 msg.update.records={0}\u4ef6\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002 title.sql.deadlock.page=\u5168\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30ea\u30bb\u30c3\u30c8 diff --git a/src/main/webapp/WEB-INF/jsp/index.jsp b/src/main/webapp/WEB-INF/jsp/index.jsp index b5645e2a..4cbc192c 100644 --- a/src/main/webapp/WEB-INF/jsp/index.jsp +++ b/src/main/webapp/WEB-INF/jsp/index.jsp @@ -70,8 +70,8 @@

  • - - : + :