René's URL Explorer Experiment


Title: SecureRandom causes high lock contention in heavy-volume environments · Issue #368 · dnsjava/dnsjava · GitHub

Open Graph Title: SecureRandom causes high lock contention in heavy-volume environments · Issue #368 · dnsjava/dnsjava

X Title: SecureRandom causes high lock contention in heavy-volume environments · Issue #368 · dnsjava/dnsjava

Description: We're using dnsjava in a high-volume environment. We've observed high lock contention related to the secure random number generation. Ultimately, the issue is that the JDK's NativePRNG has a synchronized block on the hot path in implNext...

Open Graph Description: We're using dnsjava in a high-volume environment. We've observed high lock contention related to the secure random number generation. Ultimately, the issue is that the JDK's NativePRNG has a synchr...

X Description: We're using dnsjava in a high-volume environment. We've observed high lock contention related to the secure random number generation. Ultimately, the issue is that the JDK's NativePRNG ...

Opengraph URL: https://github.com/dnsjava/dnsjava/issues/368

X: @github

direct link

Domain: Github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SecureRandom causes high lock contention in heavy-volume environments","articleBody":"We're using dnsjava in a high-volume environment. We've observed high lock contention related to the secure random number generation. Ultimately, the issue is that the JDK's `NativePRNG` has a synchronized block on the hot path in `implNextBytes`.\r\n\r\nIn dnsjava, `SecureRandom` is used for header IDs and in `NioUdpClient`. The latter can be disabled [when it's safe] with `dnsjava.udp.ephemeral.use_ephemeral_port`.\r\n\r\nI wanted to document this problem but, because it probably doesn't affect a lot of people, I am not sure what should be done, if anything. We're using a fork that works around this and a couple of other problems.\r\n\r\nSome thoughts:\r\n- In the ideal world, Java would perhaps provide `ThreadLocalSecureRandom` that caches randomness at thread level to reduce pressure on `NativePRNG`. This would resolve the contention except in a highly-inefficient and unlikely scenario with short-lived threads.\r\n- If dnsjava makes secure random generation pluggable, heavy users could provide their own implementation that perform better under high concurrency.\r\n- Another property can be added to disable the use of `SecureRandom`, which might be safe when dnsjava is used with a local recursive resolver.\r\n\r\n","author":{"url":"https://github.com/ivanr-rs","@type":"Person","name":"ivanr-rs"},"datePublished":"2025-01-08T12:31:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/368/dnsjava/issues/368"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c96778bc-da5a-617e-26bf-3f8cd237ae3b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBAF8:D68F0:95BEC0:CAD30D:6A62E9CF
html-safe-nonceeeee4248f9b5f3a3f2b8c898a0e0ea7ddcae01bc6140f7ed4ec9973934175189
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUY4OkQ2OEYwOjk1QkVDMDpDQUQzMEQ6NkE2MkU5Q0YiLCJ2aXNpdG9yX2lkIjoiNzk4OTc5MTU1OTMxNTAyNDMzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac589081b7c334254a3c01402a6636227e7e44ceb42ba8d11daa3d6295f8697a00
hovercard-subject-tagissue:2775281044
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dnsjava/dnsjava/368/issue_layout
twitter:imagehttps://opengraph.githubassets.com/96b3688b2ef7bcaff7f572c176a3080afc62092b40b587b273a6d30af3242a67/dnsjava/dnsjava/issues/368
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/96b3688b2ef7bcaff7f572c176a3080afc62092b40b587b273a6d30af3242a67/dnsjava/dnsjava/issues/368
og:image:altWe're using dnsjava in a high-volume environment. We've observed high lock contention related to the secure random number generation. Ultimately, the issue is that the JDK's NativePRNG has a synchr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameivanr-rs
hostnamegithub.com
expected-hostnamegithub.com
Nonedf33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd
turbo-cache-controlno-preview
go-importgithub.com/dnsjava/dnsjava git https://github.com/dnsjava/dnsjava.git
octolytics-dimension-user_id6755615
octolytics-dimension-user_logindnsjava
octolytics-dimension-repository_id17084567
octolytics-dimension-repository_nwodnsjava/dnsjava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id17084567
octolytics-dimension-repository_network_root_nwodnsjava/dnsjava
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released41cd1bdb290013455c0ac430fa755621733f5eb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://Github.com/dnsjava/dnsjava/issues/368#start-of-content
https://Github.com/
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdnsjava%2Fdnsjava%2Fissues%2F368
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdnsjava%2Fdnsjava%2Fissues%2F368
Sign up https://Github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=dnsjava%2Fdnsjava
Reloadhttps://Github.com/dnsjava/dnsjava/issues/368
Reloadhttps://Github.com/dnsjava/dnsjava/issues/368
Reloadhttps://Github.com/dnsjava/dnsjava/issues/368
Please reload this pagehttps://Github.com/dnsjava/dnsjava/issues/368
dnsjava https://Github.com/dnsjava
dnsjavahttps://Github.com/dnsjava/dnsjava
Notifications https://Github.com/login?return_to=%2Fdnsjava%2Fdnsjava
Fork 264 https://Github.com/login?return_to=%2Fdnsjava%2Fdnsjava
Star 1.1k https://Github.com/login?return_to=%2Fdnsjava%2Fdnsjava
Code https://Github.com/dnsjava/dnsjava
Issues 16 https://Github.com/dnsjava/dnsjava/issues
Pull requests 3 https://Github.com/dnsjava/dnsjava/pulls
Actions https://Github.com/dnsjava/dnsjava/actions
Security and quality 3 https://Github.com/dnsjava/dnsjava/security
Insights https://Github.com/dnsjava/dnsjava/pulse
Code https://Github.com/dnsjava/dnsjava
Issues https://Github.com/dnsjava/dnsjava/issues
Pull requests https://Github.com/dnsjava/dnsjava/pulls
Actions https://Github.com/dnsjava/dnsjava/actions
Security and quality https://Github.com/dnsjava/dnsjava/security
Insights https://Github.com/dnsjava/dnsjava/pulse
SecureRandom causes high lock contention in heavy-volume environmentshttps://Github.com/dnsjava/dnsjava/issues/368#top
https://github.com/ivanr-rs
ivanr-rshttps://github.com/ivanr-rs
on Jan 8, 2025https://github.com/dnsjava/dnsjava/issues/368#issue-2775281044
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.