Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6849411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:59:17+00:00 2026-05-27T00:59:17+00:00

While testing a new application, we came across an issue that sometimes a stored

  • 0

While testing a new application, we came across an issue that sometimes a stored proc takes over 1 minute to execute and causes a time out. It was not 1 stored proc in particulary, it could be any.

Trying to reproduce the issue I’ve created a small (local) testapp that calls the same stored proc in different threads (code below).

Now it seems that the Oracle-sessions are still there. Inactive. And the CPU of the Oracle-server hits 100%.
I use the System.Data.OracleClient

I’m not sure if one is related to the other, but it slows down the time needed to get an answer from the database.

for (int index = 0; index < 1000; ++index)
{
    ThreadPool.QueueUserWorkItem(GetStreet, index);
    _runningThreads++;
    WriteThreadnumber(_runningThreads);
}

private void GetStreet(object nr)
{
    const string procName = "SPCK_ISU.GETPREMISESBYSTREET";
    DataTable dataTable = null;
    var connectionstring = ConfigurationManager.ConnectionStrings["CupolaDB"].ToString();
    try
    {
        using (var connection = new OracleConnection(connectionstring))
        {
            connection.Open();
            using (var command = new OracleCommand(procName, connection))
            {
                //Fill parameters
                using (var oracleDataAdapter = new OracleDataAdapter(command))
                {
                    //Fill datatable
                }
            }
        }
    }
    finally
    {
        if (dataTable != null)
            dataTable.Dispose();
    }
}

EDIT:
I just let the dba make a count of the open sessions and there are 105 sessions that stay open-inactive. After closing my application, the sessions are removed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:59:17+00:00Added an answer on May 27, 2026 at 12:59 am

    Problem is solved.

    We hired an Oracle-expert to take a look at this and the problem was caused due to some underlying stored procedures that took a while to execute and consumed a lot of CPU.

    After the necessary tuning, everything runs smoothly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are writing a new application, and while testing, we will need a bunch
I'm facing a problem while unit testing my forms. The problem is that data
While Joel Spolsky thinks that every bug should be fixed before new code is
I have an application that, as any other app, crashes once in a while
I'm about to start a new C# application, which will probably take some while
I need to capture the amount of time that ASP.net takes to execute each
While testing a console app, I set the properties of the console window to
I am getting the NSConcreteData leaked object while testing the leaks in the instruments.It
My time zone is CET (Berlin). And while testing Joda's DateTime i noticed some
I am trying to learn and writting this part of code. while testing few

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.