Title: fix close_wait and tomcat connection keeps growing by taobaorun · Pull Request #726 · modelcontextprotocol/java-sdk · GitHub
Open Graph Title: fix close_wait and tomcat connection keeps growing by taobaorun · Pull Request #726 · modelcontextprotocol/java-sdk
X Title: fix close_wait and tomcat connection keeps growing by taobaorun · Pull Request #726 · modelcontextprotocol/java-sdk
Description: Motivation and Context Reproduction Scenario: Perform stress testing at 120 TPS. MCP client/server environment: 4 cores, 8 GB memory. Create an MCP client, invoke methods, then close the client. Issue: A large number of CLOSE_WAIT connections appear on the Tomcat side. Meanwhile, the number of Tomcat connections keeps increasing. After observation, neither the CLOSE_WAIT states nor the connections are being released. CLOSE_WAIT tcp 1 0 127.0.0.1:8080 127.0.0.1:41480 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:37302 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:38498 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:56912 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:43558 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:59106 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:56932 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:51550 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:51164 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:43560 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:34260 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:41716 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:35992 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:44786 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:55236 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:59386 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:53424 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:56114 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:58248 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:52838 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:48726 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:36736 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:45538 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:59914 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:40062 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:52192 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:33146 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:47786 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:58276 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:49948 CLOSE_WAIT - tcp 1 0 127.0.0.1:8080 127.0.0.1:49464 CLOSE_WAIT - Tomcat Connection lrwx------ 1 admin admin 64 12月 14 13:53 960 -> socket:[23255743] lrwx------ 1 admin admin 64 12月 14 13:53 961 -> socket:[23420857] lrwx------ 1 admin admin 64 12月 14 13:53 962 -> socket:[23662408] lrwx------ 1 admin admin 64 12月 14 13:53 963 -> socket:[23520462] lrwx------ 1 admin admin 64 12月 14 13:53 964 -> socket:[23220526] lrwx------ 1 admin admin 64 12月 14 13:53 965 -> socket:[23403999] lrwx------ 1 admin admin 64 12月 14 13:53 966 -> socket:[23260212] lrwx------ 1 admin admin 64 12月 14 13:53 967 -> socket:[23793138] lrwx------ 1 admin admin 64 12月 14 13:53 968 -> socket:[23713542] lrwx------ 1 admin admin 64 12月 14 13:53 969 -> socket:[23426193] lrwx------ 1 admin admin 64 12月 14 13:53 970 -> socket:[23570999] lrwx------ 1 admin admin 64 12月 14 13:53 971 -> socket:[23222233] lrwx------ 1 admin admin 64 12月 14 13:53 972 -> socket:[23387440] lrwx------ 1 admin admin 64 12月 14 13:53 973 -> socket:[23288628] lrwx------ 1 admin admin 64 12月 14 13:53 974 -> socket:[23293539] lrwx------ 1 admin admin 64 12月 14 13:53 975 -> socket:[23404582] lrwx------ 1 admin admin 64 12月 14 13:53 976 -> socket:[23366146] lrwx------ 1 admin admin 64 12月 14 13:53 977 -> socket:[23741741] lrwx------ 1 admin admin 64 12月 14 13:53 978 -> socket:[23598858] lrwx------ 1 admin admin 64 12月 14 13:53 979 -> socket:[23232809] lrwx------ 1 admin admin 64 12月 14 13:53 980 -> socket:[23401313] lrwx------ 1 admin admin 64 12月 14 13:53 981 -> socket:[23232813] lrwx------ 1 admin admin 64 12月 14 13:53 982 -> socket:[24086253] lrwx------ 1 admin admin 64 12月 14 13:53 983 -> socket:[23409146] lrwx------ 1 admin admin 64 12月 14 13:53 984 -> socket:[23426197] lrwx------ 1 admin admin 64 12月 14 13:53 985 -> socket:[23858842] lrwx------ 1 admin admin 64 12月 14 13:53 986 -> socket:[23385364] lrwx------ 1 admin admin 64 12月 14 13:53 987 -> socket:[23694127] lrwx------ 1 admin admin 64 12月 14 13:53 988 -> socket:[23692908] lrwx------ 1 admin admin 64 12月 14 13:53 989 -> socket:[23628026] lrwx------ 1 admin admin 64 12月 14 13:53 990 -> socket:[23313794] lrwx------ 1 admin admin 64 12月 14 13:53 991 -> socket:[23236207] lrwx------ 1 admin admin 64 12月 14 13:53 992 -> socket:[23790058] lrwx------ 1 admin admin 64 12月 14 13:53 993 -> socket:[23426205] lrwx------ 1 admin admin 64 12月 14 13:53 994 -> socket:[23700721] lrwx------ 1 admin admin 64 12月 14 13:53 995 -> socket:[23617975] How Has This Been Tested? Breaking Changes benchmark test Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the MCP Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed Additional context
Open Graph Description: Motivation and Context Reproduction Scenario: Perform stress testing at 120 TPS. MCP client/server environment: 4 cores, 8 GB memory. Create an MCP client, invoke methods, then close the client. I...
X Description: Motivation and Context Reproduction Scenario: Perform stress testing at 120 TPS. MCP client/server environment: 4 cores, 8 GB memory. Create an MCP client, invoke methods, then close the client. I...
Opengraph URL: https://github.com/modelcontextprotocol/java-sdk/pull/726
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:fb94d948-32b3-90ca-706f-411a8a814e95 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D4A6:2C528C:9C13A:D0FDB:6A5BB861 |
| html-safe-nonce | d440046a8e3f927014f8811ea891a51444493662b3acd4aa950f680878d92979 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEE2OjJDNTI4Qzo5QzEzQTpEMEZEQjo2QTVCQjg2MSIsInZpc2l0b3JfaWQiOiI2NjY5MDcxOTY1OTkwMTQwMDAxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5dcbf264805f359171949bba856e5d23402954933cf486f3b828cb6b8097ee79 |
| hovercard-subject-tag | pull_request:3099415113 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/java-sdk/pull/726/files |
| twitter:image | https://avatars.githubusercontent.com/u/2045309?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2045309?s=400&v=4 |
| og:image:alt | Motivation and Context Reproduction Scenario: Perform stress testing at 120 TPS. MCP client/server environment: 4 cores, 8 GB memory. Create an MCP client, invoke methods, then close the client. I... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/java-sdk git https://github.com/modelcontextprotocol/java-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 919609219 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/java-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 919609219 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/java-sdk |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width