Withdrawal of the cache folder ready to call APEX earphone with GlassFish

Hello

We had several unexplained crashes of APEX in our environment in recent months. All this happened after we moved to GlassFish the listener to the APEX. The symptoms were always that all connections in the JDBC connection pool have been used and we had to restart the instance of GlassFish server to free up.

I finally managed to replicate and to determine the cause of this recurring problem. The culprit is file caching used by the auditor of the APEX to the cache file. We use it to cache the downloads of image of the database with a procedure, and the caching folder was set to/tmp/apex/cache. I believe that this is the default setting. All right, when the procedure was called the images were downloaded from the database and caching under/tmp/apex/cache. However, for some (still unexplained) reason, Linux sometimes removes this system of files/tmp folder. This seems to happen at any time after a period of inactivity. We have not to restart the server. After that the file is missing, the listener of the APEX is unable to recreate it, continues to create new database connections until the configured maximum value is reached, and we need to restart the instance of GlassFish to free up. It also recreates the cache folder.

Our environment: GlassFish 3.1.1 and 3.1.2, APEX listener 1.1.3 Oracle Linux 6.2. I didn't try the new listener APEX 1.1.4 yet I'm not sure if this problem has been fixed in the latest version.

(kind of reminds me of the problem where the APEX configuration file is by default submitted/tmp and also disappears from time to time)

HTH,
Matthias
http://matthiashoys.WordPress.com

Hello Matthias.

(kind of reminds me of the problem where the APEX configuration file is by default submitted/tmp and also disappears from time to time)

This is exactly the same cause. Why don't you set up APEX listener to use a permanent seat for his repertoire of setting cached when you set the config.dir ? The corresponding setting in the apex - config.xml is named apex.cache.directory and must be paid when caching is enabled.
Of course, it would be useful APEX auditor would report an error when its cache dir is missing rather than die in silence. It would be better to change the mode of caching mode not cached when these errors occur. Maybe it will be better in a future release.

-Udo

Tags: Database

Similar Questions

  • 10g - what makes OBIEE does not cache files in the cache folder?

    Hi, experts,

    I would like to know
    What makes OBIEE does not cache files in the folder cache VIEW OF REQUEST (reports on dashboard)?

    of course, I activated the cache in nqsconfig.ini

    a few reasons why a query is not cached in obiee are:

    1. None of the tables involved in should be deleted from the query caching. Check the options for this option of caching of the physical layer.
    2. cached queries must follow all the presets in nqsconfig.ini. For example, size of cache entry, etc...
    3. the request must not contain functions such as current_timestamp, current_date, random functions, etc...

    I hope this helps.
    -bifacts :-)
    http://www.obinotes.com

  • Bridge loses the cache folder tree window when I rename the parent folder

    I managed to Activate the changing the code name of the parent folder containing some images (I put underscore before the name of the parent folder).

    When I did it by hand, the folder and subfolders that I navigate were visible on the window of the folder (left side)

    But I lost the navigation of files in the window on the left when I do exactly the same code.

    (...)

    var newPath = decodeURI (Path.parent) + "/ __" + name;
    var bt = new BridgeTalk();
    BT. Target = "bridge."
    as access bridge contemporary 1. Colocacao do _ 2. Label 3. Organização back ficheiros por tipo
    BT. Body = "app.document.thumbnail = Folder('"+newPath+"').fsName;";
    BT. Send (8);
    BT. Pump();

    (...)

    ... and the left navigation desapears...

    Y at - he's hiding even lose the problem? If I can recreate the last window navigation file some how with the code?

    I can't believe, I found this, but it works and it's simple.

    At the same time, I spent 2 years using bridge in the wrong way and if I had a dev Adobe Bridge here, I wouldn't be very happy.

    Why Adobe cannot just give a straight and direct answers as in this case?

    When I rename an app.document.presentationPath, I usually returned his file parent on refresh() then first place it.

    Then, I would go back to the new folder renamed.

    Problem:

    "Content" Panel was OK and refreshed but the 'Files' Panel was not: the last folder is renamed not was still there and I still need to close her file parent panel 'Folder', click F5 and reopen making this ghost file to disappear.

    The solution is simple and logical, but unfortunately it took 2 years for me to solve.

    I only needed to start dealing with the chain of node that contains a full bridge (uniform resource identifier) URI.

    For example:

    var origin = Folder (app.document.presentationPath);

    var renamedFolderName is "v_" + folder (app.document.presentationPath) .name;.

    App.document.Thumbnail = new thumbnail (New Folder (app.document.presentationPath) .parent); return to the parent folder

    //

    Record (origin) .rename (renamedFolderName); change of name

    App.document.thumbnail.Refresh (); update the parent folder

    App.document.Thumbnail = new thumbnail (new thumbnail (folder (folder (origin) .parent + "/" + renamedFolderName) .fsName) .uri); the uri is the node (URI of full-bridge)

    And... the 'Files' Panel has been updated correctly, and the ghost file missing!

  • Delete the contents of the Caches folder?

    Hi all

    Hard drive > users > username > library > Caches

    I discovered Caches of this record is About 60 GB big.

    I can delete everything inside this folder?

    Thank you!

    Hi howwow. Yes, you can delete any folder cache and it will rebuild. But be aware that your mac will be slower for a while after doing this, until they can catch up.

  • Hello.. I have a problem with the extensions folder... I confused with the extension folder in the library to cash... then I deleted all the stuff in the folder and restared my pc and its still in tha half and wont start... what I did?

    Hello.. Please I have a problem regarding the extensions library folder... I eccidentally deleted all the stuff in this folder and then I restarted my mac. His picture and it does not start... What have I done? I can somehow it repair? Sound on the screen to restart 2 hours... Thank you

    You must wipe the drive and reinstall OS X. In the future, you need to stay away from the data in the system until you know what it is and the consequences of the removal.

    Install or reinstall OS X from scratch

    Make sure that you have backed up your files because the following procedure will remove all of the hard drive.

    HD recovery start:

    Restart the computer after the ring, press in and hold the COMMAND and R keys until the menu screen to appear.

    Erase the drive:

    1. select in the main menu disk utility and click on the continue button.

    2. once the charges of THE select your boot volume (usually Macintosh HD) in the

    list on the left. Click on the Erase tab in the main window of THE.

    3. set the type of format Mac OS extended (journaled). If necessary, click

    Security and button all the option data from scratch in a single pass. Click

    the clear button and wait until the process is complete.

    4 leave FROM and return to the main menu.

    Reinstall OS X: Select reinstall OS X and click on the install button.

    Note : You will need an active Internet connection. I suggest to use Ethernet if possible

    because it is three times faster than wireless.

    This should install the version of Mac OS X that you had installed it.

  • You cannot use a remote location like a cache of the project folder.

    I get this message when you try to activate SCORM in my project, how can I publish?

    You cannot use a remote location like a cache of the project folder. Please enter a valid address to continue.

    Any ideas are appreciated!

    Hello

    Can you check edit > Preferences > General settings.

    and check the location of the cache folder and the project preferences.

    This location by defalt is: C:\Users\ user\Documents\Adobe put Captivate cached ongoing projects

    Please check this and respond

    Thank you.

  • Can I restore my favorites from a cache folder?

    When I tried to save my favorites I chose by the profile error in AppData > Local instead of AppData > Roaming. Accordingly, I have no "bookmarkbackups" folder

    Is there a way to restore my bookmarks of the cache folder in AppData > local backup?

    Sorry, there is no bookmarks in the cache, or anywhere in the AppData > Local file path.

  • Finder keep it open the file even after I change the default folder

    I have the problem with the default folder in the finder.

    A few months ago, I changed the default folder from the finder to a specific folder. Now, I want to change to the new folder. I already go to finder > Preferences > General > new poster finder window and change the folder, but whenever I click on the finder on the dock for the first time, keep the change back to the old folder. What should I do with this?

    Thank you for the help

    HI there Alia80,

    Looks like you set your Finder preferences to open a specific folder when you open a new window, but it seems to keep coming back to what it was previously set to. I would first start safe mode and if some system-level caches can be erased, and a check disk and repair is done automatically:

    Try safe mode if your Mac does not end commissioning

    Follow these steps to start in safe mode.

    1. Start or restart your Mac.
    2. As soon as you hear the startup tone, hold down the SHIFT key.
    3. Release the SHIFT key when you see the logo Apple appears on the screen.

    After the Apple logo appears, this may take longer than usual to reach the login screen or your office. This is because your Mac performs a check of directory of your drive to boot in safe mode.

    To leave safe mode, restart your computer without pressing any keys during startup.

    Once you log in safe mode, let him by making a normal restart and test the issue again.

    If it persists after this test this point in a new admin on your computerand user let me know what is happening there:

    OS X El Capitan: set up users on your Mac.

    Thank you for using communities of Apple Support.

  • Cannot create a .db file in the assets folder

    I am trying to create a quizz.db file in the current folder by creating first a temporary quizz.db in the folder data and then creating tables inside and then copy it in the current folder. By debugging code, it shows that the folder is created. But I can't find it in the current folder. Here is the code

    #include 
    #include 
    #include 
    #include 
    
    using namespace bb::cascades;
    using namespace bb::data;
    
    SQLTest::SQLTest(bb::cascades::Application *app): QObject(app)
    {
        const QString fileName = QString("quizz.db");
        QString dataFolder = QDir::homePath();
        QString newFileName = dataFolder + "/" + fileName;
        QTemporaryFile file(newFileName);
    
        // Open the file that was created
        if (file.open())
        {
            // Create an SqlDataAccess object
            SqlDataAccess sda(newFileName);
    
            // Create a table called Employee in the database file
            sda.execute("CREATE TABLE Employee( firstName VARCHAR(50),lastName VARCHAR(50), salary INT);");
    
            // Insert employee records into the table
            sda.execute("INSERT INTO Employee (firstName, lastName, salary) VALUES (\"Mike\", \"Chepesky\", 42000);");
            sda.execute("INSERT INTO Employee (firstName, lastName, salary) VALUES (\"Westlee\", \"Barichak\", 55000);");
            sda.execute("INSERT INTO Employee (firstName, lastName, salary) VALUES (\"Ian\", \"Dundas\", 47000);");
            if(sda.hasError())
            {
    
            }
            else
                copyFileToAssetsFolder("quizz.db");
        }
    }
    void SQLTest::copyFileToAssetsFolder(const QString fileName)
    {
        QString appFolder(QDir::homePath());
        appFolder.chop(4);
        QString originalFileName = appFolder + "app/native/assets/" + fileName;
        QFile newFile(originalFileName);
    // If I enable this `if` condition the code satisfies it and removes the quizz.db file and then it satisfies the next `if` condition and successfully copies the quizz.db file from `data` folder to `assets` folder.
        /*if(newFile.exists())
            QDir().remove(originalFileName);*/
        // this `if` condition is not satisfied. Which should mean the quizz.db file has been created on assets folder.
        if (!newFile.exists())
        {
            // If the file is not already in the assets folder, we copy it from the
            // data folder (read and write) to the assets folder (read only).
    
            QString dataFolder = QDir::homePath();
            QString newFileName = dataFolder + "/" + fileName;
            QFile originalFile(newFileName);
    
            if (originalFile.exists())
            {
                // Create sub folders if any creates the SQL folder for a file path like e.g. sql/quotesdb
                QFileInfo fileInfo(originalFileName);
                QDir().mkpath (fileInfo.dir().path());
    
                if(!originalFile.copy(originalFileName)) {
                    qDebug() << "Failed to copy file to path: " << originalFileName;
                }
            } else {
                qDebug() << "Failed to copy file data base file does not exists.";
            }
        }
    
       // mSourceInDataFolder = newFileName;
    }
    

    If activate the commented "If" condition of "copyFileToAssetsFolder" int he removes already created quizz.db file in the current folder (that Im unable to find) and goes inside the next ' if' and copy the quizz.db created on the folder "data" of active fodler. But in any case I don't find the quizz.db in the current folder. I really need help with this quickly. Thank you.

    Thanks to read this to learn why you can have an application change the assets folder: https://developer.blackberry.com/native/documentation/bb10/com.qnx.doc.native_sdk.devguide/com.qnx.d...

  • Bridge of the cache error message

    Capture d’écran 2016-01-22 à 13.12.11.png

    Someone has successful sr get rid of this problem?

    Thank you

    Instead of serving from the preferences, attempt to do by hand en deleting all files from the Cache folder (default C:\Users\\AppData\Roaming\Adobe\Bridge\Cache - if you see it, enable the display of files and hidden folders in Windows Explorer).

    If it doesn't, the other possibility is to do a reset of the preferences (to be addressed again):

    1. push and some the key Ctrl + Alt + shift.

    2. start Bridge.

    3. in the dialog box that opens, check the first 2 cases, and click OK.

  • What is the default location for the cache?

    I made the mistake to change my default location for the cache for Adobe Bridge and now I want to change it back... but I can not find the folder or know the path.

    Hi lorenkahle

    • Navigate to C:\Users\"Your user name' \AppData\Roaming\Adobe\Bridge CC\Cache (Windows)

    / User/Library/Caches/Adobe Bridge CC/Cache / (MAC)

    Bridge Cache in the Cache folder.

    You can set it to this place

    • If this does not help, you can reset bridge default preferences that will change the location of the cache.

    For so press and hold the CTRL, ALT, Shift (Windows) / Cmd + Option + Shift (MAC) during the start-up of bridge and make check reset preferences, and then click Ok

    Concerning

    Assani


  • Purge the cache of OBIEE in ODI

    Hello experts,

    I have ETL running on a server of the ODI and OBIEE running on another server (both Windows Server 2008 R2). I want to purge the cache of OBIEE in calling a batch file after all charges ETL are made.

    What would be the best way to do this? Please notify.

    Thanks in advance!

    Hello.

    I hope is not so late to help on this.

    You try to use the Event of voting table.

    Refer to this: http://gerardnico.com/wiki/dat/obiee/event_table

    You just need to implement an ODI interface to load the table with the correct information to clear the cache (check Gerardnico message inserted properly in the event Polling Table)

    I spotted a problem with that.

    The UPDATE_TS attribute in the table must be unique, or in your ETL, you must ensure that no duplicate datetime will be inserted in this table. This attribute is the key for the purging of the Cache. This may seem ridiculous to say this, but if you use a bulk insert and variable with date information hour all your records in the event of voting Table can end with the same date time. This will cause a problem and your cache is not deleted.

    See you soon.

  • Bridge has encountered a problem and cannot read the cache

    For past couple of months, whenever I have start Adobe Bridge directly (and), it gives me an error saying: "bridge has encountered a problem and cannot read the cache. Please try to purge central cache in the Cache preferences to correct the situation. " I do the same through the preferences. And then the bridge takes a long time to load the thumbnails. And next time when I restart Adobe Bridge, same problem.

    It started hapennign all of a sudden for the last two months. It has been previously very quickly.

    Please notify all solutions.

    This notice of page adobe faecebook worked for me:

    Sometimes the purge of preferences is not all MS... So, you can manually go and delete the cache folder Bridge CS6.

    1. exit the bridge
    2. If mac goto: Users/username/Library/Caches/Adobe /.
    3 remove the Bridge CS6 (or whatever version you have) file
    4 restart Bridge. He will rebuild the folder and the files included in this one.

    HTH

  • LR4 and Cache folder Camera RAW

    Hi all

    I know that many are complaining about the LR4 responsiveness and how LR3 was faster in response.

    Like many others, I have a new and very fast PC, but apparently LR4 crawling when it comes to navigtaing through images.

    I've done my share of tweaking LR4 for best results optimized such as catalogues Optimize, Render 1:1 previews, increase the Camera Raw cache of 30 GB size, move the folder, camera Raw Cache next to the catalog folder as Adobe recommends and what not.

    LR4 has become more sensitive, but I noticed something strange, which is the subject of this post.

    While filddeling autour with LR4 performance issues on my PC, I noticed that even if I have more than 20,000 images in my PC and some files are rendered with 1:1 previews, the Camera Raw Cache folder is empty.

    This could explain why render 1:1 previews did not affect LR4 while browsing through the images.

    For example, just after I created 1:1 previews (whether any right of importation or after the fact) I'm back navigation during this action of navigation, LR4 makes 2 images every time I discover them--which beats the purpose of using the cache file.

    Thus it comes to think how, even with such a catalog size and raw camera remains empty 1:1 previews, the cache folder? And this could be the cause that makes LR4 make every single picture over and over again without worrying if I saw the picture a second ago?

    Thank you.

    Gil.

    There you go then.

    LR does not need to use the Camera Raw cache folder because there is storage essentially the same data that would be stored in the folder cache directly in the file itself. "Fast loading data" Google and you should find a reasonable amount of information on the subject. This also rules out this folder specific as being a source of any performance issues, you may face, as implied by another poster.

    M

  • How to change the path of the Cache of the Adobe Reader manually?

    Hello

    I have a problem with one of my clients running Adobe Drive 2.1. Operatingsystem Username of the user on the Client computer Standard has been changed (MAC OSX) and Adobe Drive connects now its cache file to the old user profile folder. If I try to change it in the settings of the player, it says something like "can't be done, try again later". Think it must be a rights issue. Tried different ways with new users of the system, drive reinstllation with removal of preferences a.so. always with the same result, I can't change the path to the cache folder in the Adobe Reader, and this prevents me to connect to the cmis server. If the client cannot use the connector and the bridge to manage the connection to the cmis server - a little awkward

    I think there must be a file with the path to the cache of the Adobe Reader is hard coded, but I have not found the right file again (looked into the contents of the package of reader to Adobe via the Mac Finder). Can you give me a hint where I can find the entrance to cache-path?

    Thank you very much.

    Best regards

    Volker

    Hi LUXMEDIA,.

    To change cache path manully, please follow the steps below:

    Assuming that the original cache location is User/wear/Library/Application Support/Adobe/CS5ServiceManager/diskcache, the new cache location is User/userB/Library/Application Support/Adobe/CS5ServiceManager/diskcache

    1. quit Adobe Reader and kill CS5ServiceManager

    2 copy the files under User/wear/Library/Application Support/Adobe/CS5ServiceManager/diskcache for User/userB/Library/Application Support/Adobe/CS5ServiceManager/diskcache

    3. launch the Terminal, enter the following commands:

    CD 3.1 User/userB/Library/Application Support/Adobe/CS5ServiceManager/configuration

    3.2 ls - al

    you will see .settings file

    3.3 .settings CD

    LS 3, 4 - al

    you will see a file with the name org.eclipse.core.runtime.preferences.OSGiPreferences.11.prefs

    3.5 org.eclipse.core.runtime.preferences.OSGiPreferences.11.prefs vi

    change the value ' system/cache_location' to ' / user/UserB/Library/Application Support / Adobe / CS5ServiceManager / diskcache '

    4. relaunch Adobe Drive, go into Control Panel, you will see that the path of the cache has been updated.

    Thank you

    Today

Maybe you are looking for