Skip to content

Commit

Permalink
Add a servlet which can cause DB connection leaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
k-tamura committed Dec 27, 2016
1 parent f644d66 commit 4882058
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/main/resources/indexpage_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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.<br>\
(* 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
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/indexpage_ja.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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<br> \
(* \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
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/messages_ja.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/WEB-INF/jsp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
<fmt:message key="function.description.network.socket.leak" />
</p></li>
<li><p>
<fmt:message key="function.name.database.connection.leak" />
:
<a href="dbconnectionleak " target="_blank"><fmt:message
key="function.name.database.connection.leak" /></a> :
<fmt:message key="function.description.database.connection.leak" />
</p></li>
<li><p>
Expand Down

0 comments on commit 4882058

Please sign in to comment.