?
Solved

telnetd error

Posted on 1998-05-12
6
Medium Priority
?
318 Views
Last Modified: 2013-12-27
We have a Sun server with an Informix database loaded on it.  About 60 users from PC's and other Suns telnet to the server to gain access to the database off and on throughout the day.  Here lately, i guess more users are trying to telnet at the same time and we get an error message like this:

telnetd:  All network ports in use.
Connection closed by foreign hosts.

What can be done to increase the number of users that can log into the Sun system at one time?

0
Comment
Question by:j_k
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 1

Accepted Solution

by:
wex earned 150 total points
ID: 2006769
You're not going to like this answer, but that's a kernel feature which is controlled by a compile-time constant.  If you like, I can explain why it's done that way but the short answer is that system resources are not infinite.

One possible answer would be to put more memory into the Sun.  This won't increase the number of concurrent telnet sessions which it allows, but it should make users' operations go faster so they'll get done quicker and be off sooner.  Likewise, getting a faster disk for the database might help.

Finally, you might be able to "solve" the problem socially.  Let your users know that telnet sessions are a limited resource and ask them to close their telnet sessions instead of sitting idle.  You can sort of enforce this by putting an autologout timeout into peoples' .cshrcs or somesuch.  This will boot them off when they're idle for X minutes (20-60 usually).
0
 

Author Comment

by:j_k
ID: 2006770
Wex, i would like more information as to how to modify the kernel, to gain telnet access points.  Unless thier is reason for not doing this.  I remember in the past we had to make some kernel changes, and all went well.
This server currently has 128mb of memory, it seems sufficient.  Is there a method for determining how much is used?
Also,  Can you elaborate on how to set up an autologout feature?  I'm not sure i want to use it for telnet, but there may be some other area i might want to implement this.

j_k

0
 
LVL 1

Expert Comment

by:wex
ID: 2006771
OK, if you have the ability to recompile the kernel it's pretty simple -- there are constants in various .h files and all you need to do is find the one which is controlling telnet connections and change it.  You might also need to increase the total number of possible open file descriptors for the kernel as a whole (since each telnet session consumes at least 3 fds).

As for determining how much memory is in use at any given time, it varies by OS and I don't have a Sun handy to test it out.  Try swap -s

As for the autologout, it's set on a per-user basis; you can't actually control whether it's used on telnet connections without some clever shell-script hacking.  In general, you can put a line in peoples' .cshrc files which says something like
     set autologout=20

which should log them out after 20 minutes of idleness.
0
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

Author Comment

by:j_k
ID: 2006772
wex,
I didn't see any reference to telnet setting's in the *.h files.  Where or what reference should i be looking for?

0
 
LVL 3

Expert Comment

by:braveheart
ID: 2006773
One approach that might work is to provide a CGI web browser interface to the database. This might involve a lot of work and you might still get contention for system resources but at least it would get round the idle login problem because connections would only be maintained for the duration of each access.

Another alternative would be to see investigate whether Informix provide some TCP/IP access to the database which could be accessed from the client machines. Again, this could be quite a lot of work but might prove to be the best ultimate solution.
0
 

Author Comment

by:j_k
ID: 2006774
Thanks for the ideas.  Not sure what i will do, but for now this is not a pressing problem anymore; yeah right!  Wait till someone complains again!!
Thanks for now?

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question