• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Help for user connections

New Here ,
Sep 12, 2024 Sep 12, 2024

Copy link to clipboard

Copied

I have a 2016 coldfusion server installed on a virtual machine (8gb cpu and 16gb ram) running windows 2012 r2.
The system cannot support many users simultaneously.
With jmeeter I tested a simple page that creates a loop from 1 to 10K showing the output and if I run the request with 100 users, the CF application is super slow.
CPU rises to 30% and ram stays at 80%.

Can someone help me?

Thank you

Views

103

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 13, 2024 Sep 13, 2024

Copy link to clipboard

Copied

quote

I have a 2016 coldfusion server installed on a virtual machine (8gb cpu and 16gb ram) running windows 2012 r2.


By @Vito319717024aa6

 

First, please check that you've shared the correct value of CPU with us.

 

Now, on to the problem. I would expect ColdFusion 2016 to process a 10 000-step loop very fast, even with 100 users. The 30% CPU and 80% RAM usage suggest that something else is dragging the server down.

 

I have some questions:

  1. What is ColdFusion's update level? If in doubt, run the following code in a CFM file
    <cfoutput><p>ColdFusion build number: #server.coldfusion.productversion#</p></cfoutput>​
  2.  What Java version does ColdFusion use? If in doubt, run the following code in a CFM file
    <cfoutput><p>Java version: #server.system.properties.java.vm.version#</p></cfoutput>​

    3. What is the execution time of the code? You can estimate it by doing something like:

    <!--- Place this line at the start of the code block that you wish to time --->
    <cfset startTime = getTickCount()>
    
    <!---
    Here goes the code block that you wish to time.
     --->
    
     <!--- Place these lines directly after the end of the code block that you wish to time --->
    <cfset excutionTime = getTickCount() - startTime>
    <p>
    	Execution time of code block = <cfoutput>#excutionTime/1000#</cfoutput> seconds
    </p>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 13, 2024 Sep 13, 2024

Copy link to clipboard

Copied

LATEST

Vito, I'm sorry to hear you're having this struggle. And there's probably some simple answer/solution to this challenge. But there can be so many possible explanations and things to consider, that we would have to have potentially a lot of back and forth here.

 

You can see BKBK has asked a couple of questions already, and we could ask many more. And those MIGHT either find the answer readily, or at least narrow down the possibilities. And if you have the freedom to wait for days of reading/replying to such questions and answers, let us know and we can offer them. 

 

But if you might really rather just get this resolved quickly (minutes, not hours or days), I suspect that we could do it in like a half an hour of a consulting session together, over remote screen share. I offer such consulting via my site, carhart.org/consulting. And you'll see there that you won't even pay if you don't find the time valuable.

 

So again it's just your choice whether you want to wait potentially days and wade through a lot of questions and answers here. Or do you just want the problem solved, even today? If so, see my site and the online calendar to find an available slot and we'll get it done. Otherwise, after you answer bkbk other questions just off the top of my head could be:

- what's the cf maxheap size?

- did this setup previously handle that test well? If so, when did you notice it, and what has changed since then?

- do you have any monitoring of cf, to understand what's going on inside of it, in terms of various resources used and other requests running? 

- have you simply assessed your web server logs, to see if you're experiencing a laege incoming request load? Perhaps morn than when things worked well? 

- are you sure nothing else is consuming resources when this happens?

 

Again, I could keep going. And any one of these may be THE golden ticket, or your answers may prompt more questions. And there are more I could ask now.

 

But again what's more productive for you? In a session together, we might not pursue some of those at all, because one of them gave us the answer or a clear indication of another thing to consider. The permutations are just too numerous to list here.

 

I appreciate some don't want to pay for help (like Seinfeld's George never wanting to pay for parking). Some might see the value, which is why I offer the option (and I help people that way multiple times a day).

 

But we (BKBK and I and others) are indeed also here to help for free. I'm just saying that after decades doing this, I can tell when some questions have a straightforward answer and when others don't...even though again in the end there may well be one SIMPLE explanation and solution, some problems don't suit finding it through this forum-based approach.

 

Your call, and I've offered more questions if you prefer to go that route. 🙂 


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation