You're asking about a few distinct situations:
I have already asked an old question, and it's was not answered or didn't gain enough attention.
You should not include a link to a previous question solely to attract attention to it. Instead, you should use a bounty and/or edit your question to make your problem more clear.
I need to include the information of that question to my new question
That depends on what the information is. Each question should contain all the information needed to answer it, at least at a basic level. However, linking to an old question to provide context for a bigger picture can be useful because a project-level context helps ward off XY problems.
Is this legal here?
Yes, if your questions fall under the second "context" kind of supplemental information.
Before I was having a problem with the performance of an http server which I stated already in here(a link). But I am afraid this leads to a new problem which is...
My gut reaction is that this is an appropriate place to include the context link to your previous question. It sounds like your previous problem was solved, so its details are less important. But since the details might still be relevant, a context link is a good compromise to allow people to retain the big picture view. As long as you new question is on-topic and clear on its own, the link should be sufficient.