Temporary files and buffersize limit question
Hello,
I have two questions :
1. Buffer limit
Is there a limit for the buffer to return to a client. I have
a conversational service routine. If I want to return 50 record ( i.e. view structures
) my service routine hangs. If I do 10 records than it is ok. Is there a limit
size to return. Is there a parameter in UBBconfig to fix this.
2. Temporary files on conversational client / services
My service routine creates temporary files in the /tmp directory. Unfortunately
the mode for /tmp has 't'bit on so users can not delete files from other users.
The problem is I have a lot of temporary files in /tmp. Does anyone know how to
fix this or where can you specify not to use temp files or where can you specify
the directory to create tempfile. de name of files are /tmp/TUXxxxxxx where xxxxxx
is a random serie of characters.
Thanks a lot
Johan den Boer
email : [email protected]
[email protected]
Buffers that are larger than 3/4 of MSGMNB are sent through a file. The name is
generated with tmpnam(), so you should be able to specify a different directory by
setting TMPDIR in the environment.
The preferred solution is to not use file transfer, by setting your IPC parameters
high enough to pass all of your application messages.
If your service routine hangs, you should look at a possible application problem.
How are you packing the VIEWs into a buffer? Are you using embedded FML with
FLD_VIEW32 fields? That would be the best way.
Remember that VIEWs are binary structures that are unique to a particular machine
type. If you pack Views together into your own buffer format, and try to use them
on a different machine type, then they won't work properly.
Scott Orshan
Johan den Boer wrote:
Hello,
I have two questions :
1. Buffer limit
Is there a limit for the buffer to return to a client. I have
a conversational service routine. If I want to return 50 record ( i.e. view structures
) my service routine hangs. If I do 10 records than it is ok. Is there a limit
size to return. Is there a parameter in UBBconfig to fix this.
2. Temporary files on conversational client / services
My service routine creates temporary files in the /tmp directory. Unfortunately
the mode for /tmp has 't'bit on so users can not delete files from other users.
The problem is I have a lot of temporary files in /tmp. Does anyone know how to
fix this or where can you specify not to use temp files or where can you specify
the directory to create tempfile. de name of files are /tmp/TUXxxxxxx where xxxxxx
is a random serie of characters.
Thanks a lot
Johan den Boer
email : [email protected]
[email protected]
Similar Messages
-
Is it possible to personalize the size or the Path to your cache, history, temporary files and others? If it is, how can I do it?
I explain why. I am willing to create a RamDisk partition where I would place that kind of files with support to a bigger size, that way increasing my speed in Internet, and avoiding permanent writes in the SSD drive.
I am in i7 920 CPU, with system and programs working in a SSD drive and have 24 GB of RAM memory.Hi cor-el
In my Desktop I have the 9.0.1 version of Firefox.
I don’t know if it is or not the portable one, but I presume not.
I couldn’t follow your first link, because page is not found.
The second link takes me to somewhere where I have already been and that gives no solution to my question.
I don’t want to disable cache in Firefox. By the contrary, I want it enabled and I’m trying to make it more efficient, making it bigger and placed in a very fast driver (A RamDisk driver, which is a driver made from RAM memory).
'''''What I want is to configure by myself the place where the cache and other temporary files are placed in my computer, and their size.'''''
So, I repeat my first question. Is this possible?
Although I am Portuguese you don´t need to redirect me to Portuguese pages, cause I’m perfectly familiar with English. -
Upon launch of Lightroom after initial installation a warning came up that said lightroom needs to create temporary files and cant open. Then it opened and the catalog i imported will not show the images. How can I give permission? Running windows 8.1 64 bit. I have avast virus software.
Upon launch of Lightroom after initial installation a warning came up that said lightroom needs to create temporary files and cant open. Then it opened and the catalog i imported will not show the images. How can I give permission? Running windows 8.1 64 bit. I have avast virus software.
-
<blockquote>Locking duplicate thread.<br>
Please continue here: [[/questions/881940]]</blockquote>
Internet Explorer 8 has this feature under the Internet Options heading. Does the Firefox 6.0 have a similar feature for placing all or part of the browsing history on a drive other than the one containing the operating system?You can use the Profile Manager to create a profile folder on the other drive.<br />
You can't move only specific files.<br />
Be sure to select a new and empty folder to be used exclusively as profile folder.<br />
*http://kb.mozillazine.org/Profile_Manager
*https://support.mozilla.com/kb/Managing-profiles -
I have a damaged library file, and a few questions?
My laptop shut down instantly because of a charger/battery problem and when I started itunes up again I got the message (importing itunes music library.xml) I thought it was going to double my library so I clicked stop and when itunes opened only half of my collection was there and all playlists/smart playlists are gone.
Can someone give me some advice as to how I can bring the songs back into my library with all of the tags I have edited, (Album, Comments, Sort Album, Genre etc..)
I had the option to copy files to itunes music folder checked, so does that mean that every edit I made in itunes would change the file names in the music folder?
I still have the Itunes database file - (iTunes Library (Damaged) (date modified 15/01/2012 12:02). But there is no exact file called (itunes music library.xml)
I do have a some sort of document with that name listed as an XML Document (date modified 15/01/2012 13:55) (about 2 hours after the problem occurred) but it just opens a webpage. I can also open it in a notepad etc.. and it brings up loads of encoding detail.
Is there any way to restart that XML import?
I am sure I still have most of, if not all of my music, but it's very important for me to get back the tag info.
It would also be great if I can get back the smart playlists and date added, but this is the least important.
I'm in the middle of a slow process of transferring the itunes folder to my old laptop to see how it looks before I make any changes here, but I'm not sure how many songs I had exactly, do you think there would be any reason songs got deleted because of this? There are no songs in my itunes collection stored in folders other than the itunes folder.
You are saving my life if you can help me here.
Thanks.Empty/corrupt library after upgrade/crash
Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps youshouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
When you get it all working make a backup!
tt2 -
Files and directories (IO) question
Hello all,
I am trying to find a way to find the common top level directory of an array of absolute path files.
e.g.
Given
C:\one\two\three\four\sample.txt
C:\one\two\three\four\five\sample.txt
C:\one\two\three\four\five\six\sample.txt
C:\one\two\three\four\five\six\seven\sample.txt
the common top level directory i wish to get would be "four".
This is so that I can display these files in a list with relative paths, similar to how files are displayed in winzip or winrar.
e.g.
/four/sample.txt
/four/five/sample.txt
/four/five/six/sample.txt
/four/five/six/seven/sample.txt
If I have missed something in JDK docs, please point me in the right direction.
Any sample code would be much appreciated.
ThanksI am not sure I understand but here is one you can try that seems to do what you want (it is a bit primitive but I have not much time ;) ). I used a slightly modified version of your code as a base - more for simplicities sake
import java.io.File;
import java.util.ArrayList;
import java.util.Locale;
public class Main {
ArrayList<File> allfiles = new ArrayList<File>();
* @param args the command line arguments
public static void main(String[] args) {
new Main();
/** Creates a new instance of Main */
public Main() {
File rootpath = new File("C:/Documents and Settings/");
getFiles(rootpath.listFiles());
String commonRoot = findCommonRoot(allfiles, "");
int cut = commonRoot.length();
for(File ff : allfiles) {
String filename = ff.getAbsolutePath();
System.out.println(filename.substring(cut));
private void getFiles(File[] files) {
for(File ff : files) {
allfiles.add(ff);
if(ff.isDirectory()) {
getFiles(ff.listFiles());
public static synchronized String findCommonRoot(ArrayList<File> files, String locale) {
if(locale.equals("")) {
locale = "en";
if(files == null) {
return "";
if(files.isEmpty()) {
return "";
StringBuilder commonRoot = null;
for(File itt : files) {
String path = itt.getPath().toLowerCase(new Locale(locale));
if(commonRoot == null) {
commonRoot = new StringBuilder(path);
} else {
int length = Math.min(commonRoot.length(), path.length());
for(int i = 0; i < length; i++) {
if(commonRoot.charAt(i) == path.charAt(i)) {
continue;
commonRoot.delete(i, 0x7fffffff);
break;
int endIndex = commonRoot.toString().lastIndexOf(File.separator);
if(endIndex == -1) {
return "";
} else {
return commonRoot.substring(0, endIndex);
} -
Please help
Hi Rob,
Thanks for visiting Apple Support Communities.
The steps in this article can help:
iOS: Device not recognized in iTunes for Windows
http://support.apple.com/kb/TS1538
Best Regards,
Jeremy -
Generation of temporary files by TUXEDO
We have a customer that has written their own implementation of a TMQFORWARD
server to drain a TUXEDO queue. This server regularly polls a queue and
drains all the messages from it. If there are no messages it has nothing to
do. Our customer however observed that, without any messages to be drained
from the queue, TUXEDO still creates temporary files in /var/temp and that
these files become larger and larger over time. In addition the memory usage
of the server process grows as well. The customer is running TUXEDO 6.5 on
HP-UX 11. Output of the tusc command is presented below. I have the
following questions:
1) Why are the msgsnd() and msgrcv() called if there's nothing to do?
2) Why does TUXEDO try to access a temporary file and then create another
one if there's nothing to do?
3) Does the BEA implementation of TMQFORWARD take any special precautions to
avoid the unnecessary creation of temporary files? Maybe our customer's
implementation is missing some essential element?
In addition a more general question: under what circumstances does TUXEDO
create temporary files apart from coping with large messages? Given the
amount of messages in the catalogues about temporary files, it is my
suspicion that TUXEDO uses temporary files in many situations - but these
are not documented.
Here's the tusc output:
( Attached to process 2803 ("SyncDeliveryServer -C dom=ENV_PR3 -g 9 -i 3021
-u rhino -U /") [32-bit] )
sigtimedwait(0x7bff4660, NULL, 0x7bff4680)
................................... [sleeping]
sigtimedwait(0x7bff4660, NULL, 0x7bff4680)
................................... ERR#11 EAGAIN
time(NULL)
................................................................... =
1057590637
time(NULL)
................................................................... =
1057590637
msgsnd(7132, 0x401e9b58, 500, IPC_NOWAIT|0)
.................................. = 0
sigsetstatemask(NULL, NULL, 119675188)
....................................... = 0
msgrcv(7132, " \0\02 \0\0\0H \0\01bdc\0\0\0\0".., 115996, -1073741824, 0)
... = 500
sigprocmask(0x400778b0, NULL, 0x400778dc)
.................................... = 0
time(NULL)
................................................................... =
1057590637
access("/var/tmp", X_OK|W_OK)
................................................ = 0
getpid()
..................................................................... = 2803
(1)
access("/var/tmp/TUXANEa02803", F_OK)
........................................ ERR#2 ENOENT
lstat("/var/tmp/TUXANEa02803", 0x7bff5948)
................................... ERR#2 ENOENT
open("/var/tmp/TUXANEa028031", O_WRONLY|O_CREAT|O_TRUNC, 0666)
............... = 6
write(6, " \0\02 \0\0\0H \0\01 T \0\0\0\0".., 69520)
........................ = 69520
close(6)
..................................................................... = 0
time(NULL)
................................................................... =
1057590637
msgsnd(12628, 0x400b7d30, 297, IPC_NOWAIT|0)
................................. = 0
msgrcv(7132, "0 \0\0( \0\0\0H \0\01bdc\0\0\0\0".., 115996, 805306408, 0)
..... = 297
open("/var/tmp/TUXFNEa028021", O_RDONLY, 0)
.................................. = 6
fstat(6, 0x7bff5400)
......................................................... = 0
read(6, "0 \0\0( \0\0\0H \0\01bdc\0\0\0\0".., 69512)
......................... = 69512
close(6)
..................................................................... = 0
unlink("/var/tmp/TUXFNEa028021")
............................................. = 0
time(NULL)
................................................................... =
1057590637
time(NULL)
................................................................... =
1057590637
msgsnd(11035, 0x401e9b58, 552, IPC_NOWAIT|0)
................................. = 0
msgrcv(7132, "0 \0\0) \0\0\0H \0\01bdc\0\0\0\0".., 115996, 805306409, 0)
..... = 248
time(NULL)
................................................................... =
1057590637
sigtimedwait(0x7bff4660, NULL, 0x7bff4680)
................................... [sleeping]
Regards,
Winfried ScheuldermanOne of the issues I have with a tpacall polling server is that for starters, the
service name has to be unique across all server instances, and secondly advertising
a service means that it can be called by any other server or client. By using
threads you have no advertised services for a periodic job, don't have to worry
about creating a unique service name and dynamically advertising it, and you don't
have to do tpacalls and place dummy messages on the servers IPC queue. A nice
way to do it is to spawn thread(s) in tpsvrinit, one thread per job. Each thread
sleeps for a configurable amount of time and then does it's job. Before doing
the job it locks a mutex to prevent jobs happening concurrently. In tpsvrdone
you lock the mutex to make sure all jobs are complete and then shutdown the threads.
Of course the tpacall way does work and is sufficient for most purposes, but
I prefer the threaded way.
"Winfried Scheulderman" <[email protected]> wrote:
>
Anthony,
Thanks for the information.
Further investigation from our side revealed that the problem is caused
by incorrect
buffer allocation and release when calling tpdequeue() from within the
polling
service.
This causes the buffer to grow continuously.
After some time the buffer becomes too big for the IPC queue used by
the server
and we see the temporary files appear.
These grow as well and may become several Mb's in size, slowing down
the server,
of course.
The solution is simply to correct the buffer allocation and release calls
(tpalloc(),
tpfree()).
With regard to a polling server: I assume that your suggestion, to spawn
a thread
will, work and that you have experience with it.
However, using tpacall() without a data buffer should work fine as well.
I have seen several locations where this mechanism is used.
It works satisfactorily for these customers and they have polling servers
that
run continuously under heavy load until e.g. a TUXEDO reboot. No problem.
Apparently this shows once more that there are multiple ways to Rome.
Cheers, Winfried
"Anthony Fryer" <[email protected]> wrote:
Your customer wrote a server that periodically polls a tuxedo queue.
I'm going
to guess that to do the polling, they do a tpacall with the TPNOREPLY
flags set
to a service contained within the server, and this service is wherethe
queue
is checked for messages. If this is the case, then they probably pass
an input
buffer to the tpacall method. This input buffer normally gets placed
on the
IPC queue of the server, but if the input buffer is too big, then it
is written
to a temporary file in /var/tmp. The input buffer would have to befreed
after
the tpacall, otherwise it would cause a memory leak. Internally, tuxedo
also
allocates memory to hold the input buffers pulled off the ipc queues,
and keeps
an array of these for faster processing which can cause the tuxedo server
size
to grow. I would ask your customer if they have implemented polling
using tpacalls,
and to check the size of the buffers if they have done this. A better
way to
implement a polling server is to spawn a thread that just sleeps and
checks the
queue periodically.
"Winfried Scheulderman" <[email protected]> wrote:
We have a customer that has written their own implementation of a TMQFORWARD
server to drain a TUXEDO queue. This server regularly polls a queueand
drains all the messages from it. If there are no messages it has nothing
to
do. Our customer however observed that, without any messages to be
drained
from the queue, TUXEDO still creates temporary files in /var/temp and
that
these files become larger and larger over time. In addition the memory
usage
of the server process grows as well. The customer is running TUXEDO6.5
on
HP-UX 11. Output of the tusc command is presented below. I have the
following questions:
1) Why are the msgsnd() and msgrcv() called if there's nothing to do?
2) Why does TUXEDO try to access a temporary file and then create another
one if there's nothing to do?
3) Does the BEA implementation of TMQFORWARD take any special precautions
to
avoid the unnecessary creation of temporary files? Maybe our customer's
implementation is missing some essential element?
In addition a more general question: under what circumstances does
TUXEDO
create temporary files apart from coping with large messages? Giventhe
amount of messages in the catalogues about temporary files, it is my
suspicion that TUXEDO uses temporary files in many situations - butthese
are not documented.
Here's the tusc output:
( Attached to process 2803 ("SyncDeliveryServer -C dom=ENV_PR3 -g 9-i
3021
-u rhino -U /") [32-bit] )
sigtimedwait(0x7bff4660, NULL, 0x7bff4680)
.................................... [sleeping]
sigtimedwait(0x7bff4660, NULL, 0x7bff4680)
.................................... ERR#11 EAGAIN
time(NULL)
=
1057590637
time(NULL)
=
1057590637
msgsnd(7132, 0x401e9b58, 500, IPC_NOWAIT|0)
................................... = 0
sigsetstatemask(NULL, NULL, 119675188)
........................................ = 0
msgrcv(7132, " \0\02 \0\0\0H \0\01bdc\0\0\0\0".., 115996, -1073741824,
0)
.... = 500
sigprocmask(0x400778b0, NULL, 0x400778dc)
..................................... = 0
time(NULL)
=
1057590637
access("/var/tmp", X_OK|W_OK)
................................................. = 0
getpid()
= 2803
(1)
access("/var/tmp/TUXANEa02803", F_OK)
......................................... ERR#2 ENOENT
lstat("/var/tmp/TUXANEa02803", 0x7bff5948)
.................................... ERR#2 ENOENT
open("/var/tmp/TUXANEa028031", O_WRONLY|O_CREAT|O_TRUNC, 0666)
................ = 6
write(6, " \0\02 \0\0\0H \0\01 T \0\0\0\0".., 69520)
......................... = 69520
close(6)
= 0
time(NULL)
=
1057590637
msgsnd(12628, 0x400b7d30, 297, IPC_NOWAIT|0)
.................................. = 0
msgrcv(7132, "0 \0\0( \0\0\0H \0\01bdc\0\0\0\0".., 115996, 805306408,
0)
...... = 297
open("/var/tmp/TUXFNEa028021", O_RDONLY, 0)
................................... = 6
fstat(6, 0x7bff5400)
.......................................................... = 0
read(6, "0 \0\0( \0\0\0H \0\01bdc\0\0\0\0".., 69512)
.......................... = 69512
close(6)
= 0
unlink("/var/tmp/TUXFNEa028021")
.............................................. = 0
time(NULL)
=
1057590637
time(NULL)
=
1057590637
msgsnd(11035, 0x401e9b58, 552, IPC_NOWAIT|0)
.................................. = 0
msgrcv(7132, "0 \0\0) \0\0\0H \0\01bdc\0\0\0\0".., 115996, 805306409,
0)
...... = 248
time(NULL)
=
1057590637
sigtimedwait(0x7bff4660, NULL, 0x7bff4680)
.................................... [sleeping]
Regards,
Winfried Scheulderman -
Huge hidden temporary files from imovie 09
I've just purchased imovie09, made a project on my large external hard drive, imported an hour of video from my vid recorder and tried to render it to iDVD.... it crashed repeatedly and I then discovered that imovie09 had filled up my ROOT drive with hidden temporary files, despite the fact the project was on the external drive.
WHERE are these temporary files and WHY is imovie09 doing something as silly as ignoring my project location when rendering?
Someone please help.... this product is driving me bonkers with frustration!!thanks for your reply but it doesn't answer my questions:
Fortunately I used lsof to track down that iMovie09 is completely ignoring the location of the project and is rendering the file (a multi-gigabyte file!) into /private/tmp....
.. which, quite frankly, is about the most idiotic use of a temporary directory I've ever seen.
Come on, Apple - get with it... we buy these large external drives and then your software ignores them! -
How to delete temporary file created by disk utility
I recently ran the DISK UTILITY to erase free space. During the "CREATING TEMPORARY FILE" phase the process was interrupted. I had 250GB of free space now I have none. When ERASE FREE SPACE is run, what is the name of the temporary file and where is it located so I may manually delete it? The HARD DISK UTILITY shows I have zero free space
Restart the computer and empty the Trash, or delete any file. Click here for more information.
(46218) -
How to clear cache, temporary files, cookies in Firefox five
how do I go about clearing the cache, temporary files, and cookies in the new version of Firefox five. The tools and techniques in the old menu bar were developed over many years and are useful to some people some of the time. When you make major changes and take away useful tools he often cause frustration amongst your users.
You can go to Tools -> Clear Recent History (or Ctrl+Shift+Del) and choose what you want to delete.
Or you can take the long way through Tools -> Options -> Privacy and click on "clear your recent history"
Hope this helps -
ITunes replicates files and adds a '1' to the name
I run iTunes on a Windows PC and store my library on a network drive.
iTunes often makes a new copy of a song, complete with a new file.
The new file will have the number 1 added to the filename.
For example, a song 'Lovemedo.mp3' will suddenly spawn 'Lovemedo1.mp3'. Both reside in the same library.
Can anyone explain why this happens and how to remove all the extra files this creates?I think this is done by the browser when it is saving a temporary file and there's already a file with that exact name in the temp folder.
-
Temporary file access issues in 11gR2-AIX
Hi,
I am running 11g R2 database in AIX platform .I am getting the below ORA error message when try to access the temporary files and while run the expdp datapump backup.I have notes to solve this error as need to create the tempfile and drop the problematic file.
But I want to know what cause for corrupt the tempfile . If get some details it would be worth to explain..
SQL> select file_name from dba_temp_files;
select file_name from dba_temp_files
ERROR at line 1:
ORA-01187: cannot read from file because it failed verification tests
ORA-01110: data file 201: '/oracle/oradata/primary/temp01.dbf'
Thanks,
Robin[guru@myboss ~]$ oerr ora 1187
01187, 00000, "cannot read from file %s because it failed verification tests"
// *Cause: The data file did not pass the checks to insure it is part of the
// database. Reads are not allowed until it is verified.
// *Action: Make the correct file available to the database. Then, either open
// the database, or execute ALTER SYSTEM CHECK DATAFILES. -
Tiler Desktop Environment with support for iconified files and dirs
I like to put a lot of my temporary files and directories I am working with on the desktop as icons so I can easily start them by the click of a button. However in gnome I am always manually tiling my windows. Is there any tiler with icon support? Or do you recommend running a tiler inside a more complex desktop environment?
Last edited by lordmetroid (2009-12-23 16:19:24)moljac024 wrote:GNOME/XFCE+Xmonad can work pretty well...
http://www.haskell.org/haskellwiki/Xmon … d_in_Gnome -
Is there any way to create a folder (e.g. using smart folders) whereby any files you put in it get automatically deleted after a number of days. I quite often create temporary files and then months later agonise over whether I can delete them because I've forgotten why I had them.
Smart folders are not actual folders that you can put things in. Think of them more like saved searches.
There's not a way to do this built into the OS, but you could certainly do the trick with Automator. Getting it to run periodically might not be the easiest thing if writing a script in Automator intimidates you, though someone could post instructions if you need it.
Another obvious choice would be to search [MacUpdate|http://www.macupdate.com] or [VersionTracker|http://www.versiontracker.com] for software that does what you're looking for.
Finally, you could just put these things into the temporary folder, and when you reboot, those items will be placed in the trash (in a folder called "Recovered Items"). I think that the folder that behaves this way is /tmp, and to easily access it you could type the following into the Terminal:
open /tmp
That should open a window in the Finder. In that window, hold down option and command and then click the folder icon in the title bar, next to the word "tmp", and drag it to the desktop. This will create an alias to the temporary folder that you can use any time you want. You may want to test this option to be sure it behaves as I describe!
Maybe you are looking for
-
Limited Edition Legend of Zelda Majora's Mask Availabili​ty
When will the limited edition version of Major's Mask be available? I checked a few times, but it says "Coming Soon" will it be available after an actual release date is announced? http://www.bestbuy.com/site/the-legend-of-zelda-majoras-mask-3d-limi
-
Make right pane on CC files web view collapsible or remove it
Hi, I'd love the right pane on the CC Files website to become collapsible or be removed completely. It takes valuable screen real estate and it is filled with items in a format that is not useful. Tutorials/help and your websites could easily be adde
-
Hi I use a fax to email service to receive faxes. The faxes come in as multi page TIF files. I was hoping that the 5800 would allow me to read these faxes on the move. Unfortunately using the 5800 email app I can only ever view the first page which i
-
I'd like to know if this will work. If I download Matched songs in iTunes and then burn them to a CD, go back to my computer and move those songs and their files from iTunes to the trash, then import the songs from the CD, will these songs then be ma
-
I need to update my iTunes in order to use Apple TV and so that i can use icloud with my MacBook(I have an iPad and iPhone) I have worked out in order to do this I need at least to have 10.5. I want to check that I won't lose all the apps, files, pho