Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance test - Object closed error #42

Closed
rr83019 opened this issue Jul 4, 2020 · 6 comments
Closed

Performance test - Object closed error #42

rr83019 opened this issue Jul 4, 2020 · 6 comments

Comments

@rr83019
Copy link
Contributor

rr83019 commented Jul 4, 2020

This is the most common type error occurring on both /captcha and /answer endpoint

<Response [500]>
<!DOCTYPE html>
<html>
<head><title>500 Internal Server Error</title></head>
<body><h1>500 Internal Server Error</h1>
<p>Error processing request: The object is already closed [90007-197]</p>
</body></html>
@hrj
Copy link
Contributor

hrj commented Jul 4, 2020

Does this only occur during high load?

@hrj
Copy link
Contributor

hrj commented Jul 4, 2020

Does running the scripts/simpleTest.py work for you?

Note, the test doesn't attempt to solve the captcha correctly. So it will print a failure message at the end. But there should be no exceptions.

@rr83019
Copy link
Contributor Author

rr83019 commented Jul 4, 2020

Does this only occur during high load?

No, it occurs at normal loads too. I've been testing for 1000 concurrent users spawning at 10 users/second.
It occurs at 100-150 concurrent users.

@rr83019
Copy link
Contributor Author

rr83019 commented Jul 4, 2020

Stack trace:

[info] Starting server on port:8888
[info] org.h2.jdbc.JdbcSQLException: The object is already closed [90007-197]
[info]  at org.h2.message.DbException.getJdbcSQLException(DbException.java:357)
[info]  at org.h2.message.DbException.get(DbException.java:179)
[info]  at org.h2.message.DbException.get(DbException.java:155)
[info]  at org.h2.message.DbException.get(DbException.java:144)
[info] 	at org.h2.jdbc.JdbcResultSet.checkClosed(JdbcResultSet.java:3202)
[info] 	at org.h2.jdbc.JdbcResultSet.getColumnIndex(JdbcResultSet.java:3115)
[info] 	at org.h2.jdbc.JdbcResultSet.get(JdbcResultSet.java:3247)
[info] 	at org.h2.jdbc.JdbcResultSet.getString(JdbcResultSet.java:310)
[info] 	at lc.Captcha.getChallenge(Main.scala:97)
[info] 	at lc.Server.$anonfun$new$1(Server.scala:75)
[info] 	at lc.HTTPServer.serve(Unknown Source)
[info] 	at lc.HTTPServer.handleMethod(Unknown Source)
[info] 	at lc.HTTPServer.handleTransaction(Unknown Source)
[info] 	at lc.HTTPServer.handleConnection(Unknown Source)
[info] 	at lc.HTTPServer$SocketHandlerThread$1.run(Unknown Source)
[info] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[info] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[info] 	at java.base/java.lang.Thread.run(Thread.java:834)

@rr83019
Copy link
Contributor Author

rr83019 commented Jul 4, 2020

Does running the scripts/simpleTest.py work for you?

Note, the test doesn't attempt to solve the captcha correctly. So it will print a failure message at the end. But there should be no exceptions.

When I execute the script my cursor changes and when I click the cursor the following error occurs:

import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/408.

@hrj
Copy link
Contributor

hrj commented Jul 5, 2020

Closed via 62b3a09

@hrj hrj closed this as completed Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants