Question: I am new to Mule ESB 3.6(Anypoint Studio Community Edition 5.2). I am working on communication between mule and rabbitmq. rabbitmq support AMQP protocol and mule has connector for AMQP but it work with 3.1 version. Now the question is How to connect if not AMQP from mule?

I have tried older version of AMQP connector with new Mule version but its not working as namespace error is coming. Please help. Maven i am not sure how it works as very less user guide is provided. will JMS work in this case, then how?

Answer: 
It seems that on windows the limitiation is stack space. You can increase the number of threads if you reduce the amount of stack space given to each.

reference here:

<https://blogs.msdn.microsoft.com/oldnewthing/20050729-14/?p=34773/>

edit:

just knocked up this test program on my imac. managed to create 2047 threads before running out of resources. Your mileage may vary :-)

```
#include <iostream>
#include <thread>
#include <exception>
#include <stdexcept>
#include <vector>

void myvoid()
{
    std::this_thread::sleep_for(std::chrono::seconds(5));
}

void start_thread(std::vector<std::thread>& threads)
{
    try
    {
        threads.push_back(std::thread(myvoid));
        std::cout << "started " << threads.size() <<"\n";
    }
    catch(...) {
        std::cout << "failed to start at " << threads.size() + 1 << "\n";
        throw;
    }
}

auto main() -> int
{
    std::vector<std::thread> threads;
    try {
        for(;;)
            start_thread(threads);
    }
    catch(...)
    {

    }

    for (auto& t : threads) {
        if (t.joinable()) {
            t.join();
        }
    }

    return 0;
}

```

sample output:

```
...
started 2042
started 2043
started 2044
started 2045
started 2046
started 2047
failed to start at 2048
$

```
Because no one can expect to be able to launch 2000 threads. You computer does not have resources for this.

There is a simple solution to this - use a sane number of threads. Hint - anything above 50 is likely insane, unless you have a very special circumstances.