Giter Club home page Giter Club logo

Comments (6)

justxuewei avatar justxuewei commented on June 2, 2024

Hi @mengccmumu, there was a pull request to fix this problem, see #2223. Could you help us verify this PR on your environment?

from dubbo-go.

mengccmumu avatar mengccmumu commented on June 2, 2024

already verify this PR, but OOM still occurs
image

from dubbo-go.

justxuewei avatar justxuewei commented on June 2, 2024

From the picture you provided, I don't see any leaks about the MergeURL.

from dubbo-go.

mengccmumu avatar mengccmumu commented on June 2, 2024

From the picture you provided, I don't see any leaks about the MergeURL.

you are right .
I will analyze the issue with OOM again .

from dubbo-go.

bigwalle avatar bigwalle commented on June 2, 2024

@mengccmumu
你这个oom解决了吗

from dubbo-go.

licon avatar licon commented on June 2, 2024

We are also experiencing this problem in the production environment and hope to resolve it soon

pprof list:

(pprof) list MergeURL
Total: 489.08MB
ROUTINE ======================== dubbo.apache.org/dubbo-go/v3/common.MergeURL in dubbo.apache.org/dubbo-go/[email protected]/common/url.go
  271.67MB   324.67MB (flat, cum) 66.38% of Total
         .          .    681:// the params of result will be (a1->v1, b1->v2, a2->v3).
         .          .    682:// You should notice that the value of b1 is v2, not v4.
         .          .    683:// due to URL is not thread-safe, so this method is not thread-safe
         .          .    684:func MergeURL(serviceURL *URL, referenceURL *URL) *URL {
         .          .    685:	// After Clone, it is a new URL that there is no thread safe issue.
         .       52MB    686:	mergedURL := serviceURL.Clone()
         .          .    687:	params := mergedURL.GetParams()
         .          .    688:	// iterator the referenceURL if serviceURL not have the key ,merge in
         .          .    689:	// referenceURL usually will not changed. so change RangeParams to GetParams to avoid the string value copy.// Group get group
         .          .    690:	for key, value := range referenceURL.GetParams() {
         .          .    691:		if v := mergedURL.GetParam(key, ""); len(v) == 0 {
         .          .    692:			if len(value) > 0 {
  268.67MB   268.67MB    693:				params[key] = value
         .          .    694:			}
         .          .    695:		}
         .          .    696:	}
         .          .    697:
         .          .    698:	// loadBalance,cluster,retries strategy config
         .        1MB    699:	methodConfigMergeFcn := mergeNormalParam(params, referenceURL, []string{constant.LoadbalanceKey, constant.ClusterKey, constant.RetriesKey, constant.TimeoutKey})
         .          .    700:

image

from dubbo-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.