Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

max no of files in solaris  RSS feed

 
Matron disney
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application in java on solaris.I amopening many files which gets closed after couple of hours operation.My questions are;
1)What is the resource consumption on opening file for such long on OS
2)How are open files linked to filedescriptors(is it one to one) maintained in OS
3)Is THERE any max limit on such openings
4)dOES ANYBODY SEE any other drawback on remoning the file open for so long in OS
 
Joe Ess
Bartender
Posts: 9425
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Matron disney:
I have an application in java on solaris.I amopening many files which gets closed after couple of hours operation.My questions are;
1)What is the resource consumption on opening file for such long on OS

I don't think that is documented anywhere. I don't know if you could benchmark such a thing because that overhead may be concealed within the OS rather than assigned on a per-process basis.


2)How are open files linked to filedescriptors(is it one to one) maintained in OS

I would guess it is one-to-one, but if the Java Specification doesn't specify it, the implementator of the JVM can do whatever he thinks is best.


3)Is THERE any max limit on such openings

Yes.


4)dOES ANYBODY SEE any other drawback on remoning the file open for so long in OS

I thought we covered this question in your previous post. One big drawback would be if other processes are getting starved out by your process holding onto more resources than it needs, but you haven't said that anything else is running.
[ May 09, 2005: Message edited by: Joe Ess ]
 
Matron disney
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are hundreds of operation which is running.In fact this is EAI(webmethods) which has multiple operations.However when i see in webmethods i don't see an increase in memory consumption,how can i see in solaris8
 
Henry Wong
author
Sheriff
Posts: 23279
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Matron disney:
there are hundreds of operation which is running.In fact this is EAI(webmethods) which has multiple operations.However when i see in webmethods i don't see an increase in memory consumption,how can i see in solaris8


Why do you assume that when we are talking about system resources, we are talking about memory? You can run out of file descriptors, inodes, mmu pages, or a ton of other resources, and still have plenty of memory.

Personally, I would close the files, but modern OSes are pretty robust. Unless you are opening thousands of files, it should be okay.

BTW, you can use the "vmstat" command to see the amount of free memory in the system.

Henry
 
Matron disney
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WE WOULDNOT BE OPENING 1000 OF FILES BUT SURELY 100 OF THEM,SOME OF THEM RANGE IN 300MB.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!