Off-heap backing maps seem to generate lots of garbage at insert..!?

I have been doing a lot of benchmarks of distributed caches with different backing maps. The results where partly positive (I hoped that partitioned (splitting) off-heap backing map would be almost as fast as a non-splitting on-heap backing map). For read and various types of queries this turned out to be mostly true (some queries were slightly slower - probably because they where performed per partition).
For inserts it does however sadly enough seem to be another story - already when using a non-splitting NIO backing map inserts seemed to generate a lot of garbage slowing the benchmark down significantly and when switching to a splitting NIO backing map this effect became so extreme that full GC occured more or less constantly on the cache nodes slowing execution down to almost a standstill :-(
Has anybody else tried this and seen the same results or do any of the Coherence developers have some theory?
To me it would seem like network-io to off-heap (using storage buffers allocated using nio just as the communication buffers!) should be at least as easy to perform without generating excessive garbage as to heap objects but since I dont know the internals of Coherence I cant say for sure if there are something that breaks this theory?
For me the main expected advantage with using off-heap rather than on-heap would have been REDUCED GC activity and shorter pauses but instead it seems like the result is the oposite - at least when doing inserts...
My example do not use (or need!) and secondary indexes (only performs get/put/lock/unlock) but each entry is locked before it is inserted and unlocked after (this is needed for the algorithm I am using as a benchmark) - as I have pointed out in another thread it is a pitty that no "lockAll" / unlockAll method calls exists (my benchmark is suffering a lot from all the lock/unlock remote calls) - the overhead for this is however nothing compared to the performance hit that comes from the all the GC...
I have tried to tune the GC in several ways but this has only to a very limited extent reduced the GC pauses length or the frequency of full-GC - it just seems like a LOT of garbage is generated for some reason...
The setings that so far was resulted in the least GC-overhead (still awfully bad though!) are -XX:+UseParallelGC -XX:+UseAdaptiveSizePolicy. I am using Coherence 3.5 GE and Sun JRE 1.6.0_14.
/Magnus
Edited by: MagnusE on Aug 10, 2009 3:01 PM

Thanks for ther info - I was indeed using different initial and max size in this experiment and seting them the same eased the problem (now I mostly get incremental rather than full GC messages). Insert do however still generate more GC activity than read (that seem to be more or less totally free from Java heap allocation / deallocation which is VERY good since read is so common!). Perhaps there is some more tweaking of the heap allocation/deallocation that can be done att the same time as you work on that bug you mentioned - it would really be nice with a NIO backing-map with close to zero Java heap usage for all primitive operations (read, insert, delete)!
/Magnus
Edited by: MagnusE on Aug 11, 2009 7:33 AM

Similar Messages

  • Get an error when accessing the entry from the Backing Map directly

    We are using some sample code from Oracle to access Objects associated via KeyAssociation directly from the Backing Map.
    Occasionally we get the error posted below. Can someone shed light on what this error means ?
    I'm doing a Get on the Backing Map directly.
    Thanks,
    J
    An entry was inserted into the backing map for the partitioned cache "Customerl" that is not owned by this member; the entry will be removed.
    ReadWriteBackingMap$5{ReadWriteBackingMap inserted: key=Binary(length=75, value=0x---binary key data removed ----), value=Binary(length=691, value=0x---binary value data removed---)), synthetic}
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.onBackingMapEvent(DistributedCache.CDB:152)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage$PrimaryListener.entryInserted(DistributedCache.CDB:1)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:191)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:164)
         at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:556)
         at com.tangosol.net.cache.ReadWriteBackingMap$InternalMapListener.dispatch(ReadWriteBackingMap.java:2064)
         at com.tangosol.net.cache.ReadWriteBackingMap$InternalMapListener.entryInserted(ReadWriteBackingMap.java:1903)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:191)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:164)
         at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:556)
         at com.tangosol.net.cache.OldCache.dispatchEvent(OldCache.java:1718)
         at com.tangosol.net.cache.OldCache$Entry.onAdd(OldCache.java:1786)
         at com.tangosol.util.SafeHashMap.put(SafeHashMap.java:244)
         at com.tangosol.net.cache.OldCache.put(OldCache.java:253)
         at com.tangosol.net.cache.OldCache.put(OldCache.java:221)
         at com.tangosol.net.cache.ReadWriteBackingMap.get(ReadWriteBackingMap.java:721)
         at

    Here is the sample we adapted. We have adapted the code below to our specific Cache. I have highlighted the line that throws the exception, this exception doesnt occur all the time, saw it about 10 times yesterday and 2 times today.
    import com.tangosol.net.BackingMapManagerContext;
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.CacheService;
    import com.tangosol.net.DefaultConfigurableCacheFactory;
    import com.tangosol.net.NamedCache;
    import com.tangosol.util.Binary;
    import com.tangosol.util.ClassHelper;
    import com.tangosol.util.InvocableMap;
    import com.tangosol.util.processor.AbstractProcessor;
    import java.io.Serializable;
    import java.util.Map;
    * dimitri
    public class Main extends AbstractProcessor
    public static class Foo implements Serializable
    String m_sFoo;
    public String getFoo()
    return m_sFoo;
    public void setFoo(String sFoo)
    m_sFoo = sFoo;
    public String toString()
    return "Foo[foo=" + m_sFoo + "]";
    public static class Bar implements Serializable
    String m_sBar;
    public String getBar()
    return m_sBar;
    public void setBar(String sBar)
    m_sBar = sBar;
    public String toString()
    return "Bar[bar=" + m_sBar + "]";
    public Object process(InvocableMap.Entry entry)
    try
    // We are invoked on foo - update it.
    Foo foo = (Foo) entry.getValue();
    foo.setFoo(foo.getFoo() + " updated");
    entry.setValue(foo);
    // Now update Bar
    Object oStorage = ClassHelper.invoke(entry, "getStorage", null);
    CacheService service = (CacheService) ClassHelper.invoke(oStorage, "getService", null);
    DefaultConfigurableCacheFactory.Manager bmm =
    (DefaultConfigurableCacheFactory.Manager) service.getBackingMapManager();
    BackingMapManagerContext ctx = bmm.getContext();
    Map mapBack = bmm.getBackingMap("bar");
    // Assume that the key is still the same - "test"
    Binary binKey = (Binary) ctx.getKeyToInternalConverter().convert(entry.getKey());
    Binary binValue = (Binary) mapBack.get(binKey);
    // convert value from internal and update
    Bar bar = (Bar) ctx.getValueFromInternalConverter().convert(binValue);
    bar.setBar(bar.getBar() + " updated");
    // update backing map
    binValue = (Binary) ctx.getValueToInternalConverter().convert(bar);
    mapBack.put(binKey, binValue);
    catch (Throwable oops)
    throw ensureRuntimeException(oops);
    return null;
    public static void main(String[] asArg)
    try
    NamedCache cacheFoo = CacheFactory.getCache("foo");
    NamedCache cacheBar = CacheFactory.getCache("bar");
    Foo foo = new Foo();
    foo.setFoo("initial foo");
    cacheFoo.put("test", foo);
    Bar bar = new Bar();
    bar.setBar("initial bar");
    cacheBar.put("test", bar);
    System.out.println(cacheFoo.get("test"));
    System.out.println(cacheBar.get("test"));
    cacheFoo.invoke("test", new Main());
    System.out.println(cacheFoo.get("test"));
    System.out.println(cacheBar.get("test"));
    catch (Throwable oops)
    err(oops);
    finally
    CacheFactory.shutdown();
    }

  • After my computer has been asleep and I touch my trackpad, it wakes enough to show my icon but not enough to acknowledge my keyboard or trackpad so I can type a password.  It seems the only way to make it work it to turn it off the back button.

    After my computer has been asleep and I touch my trackpad, it wakes enough to show my icon but not enough to acknowledge my keyboard or trackpad so I can type a password.  It seems the only way to make it work it to turn it off the back button.

    The reason, I included the annotation that I'd upgraded my Itunes, (On my Computer) is B/C in many forums - the very first question, *HELPERS* ask, is. "Do you have the latest version of Itunes downloaded on your computer." I wanted to knock out any obvious replies.
    Now-  "DO YOU have any idea,"... how your UNHELPFUL remarks, do absolutely nothing but hurt others that might not have the EXPERIENCE you have? How do you expect people to know things without asking questions? Whew! RUDE!!
    Message was edited by: Apple I0S Help Team

  • UnsupportedOperationException when using off-heap cache

    Hi,
    When using put and/or putAll i get an UnsupportedOperationException when using an off-heap scheme in front of a
    cache store class implementation we have. It works fine for all but off-heap schemes I think.
    Any one else ran into this ?
    Here is my config:
    <caching-schemes>
    <external-scheme>
    <scheme-name>off-heap-scheme</scheme-name>
    <nio-memory-manager>
    <initial-size>100M</initial-size>
    <maximum-size>10G</maximum-size>
    </nio-memory-manager>
    </external-scheme>
    <distributed-scheme>
    <scheme-name>off-heap-cache</scheme-name>
    <service-name>OffHeapDistributedCache</service-name>
    <thread-count>20</thread-count>
    <local-storage>true</local-storage>
    <partition-count>1009</partition-count>
    <backup-count>1</backup-count>
    <backup-count-after-writebehind>0</backup-count-after-writebehind>
    <backup-storage>
    <type>scheme</type>
    <scheme-name>off-heap-scheme</scheme-name>
    </backup-storage>
    <backing-map-scheme>
    <partitioned>false</partitioned>
    <read-write-backing-map-scheme>
    <internal-cache-scheme>
    <external-scheme>
    <scheme-ref>off-heap-scheme</scheme-ref>
    </external-scheme>
    </internal-cache-scheme>
    <write-max-batch-size>128</write-max-batch-size>
    <cachestore-scheme>
    <class-scheme>
    <class-name>my.PersistentCacheStoreFacade</class-name>
    <init-params>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>{cache-name}</param-value>
    </init-param>
    </init-params>
    </class-scheme>
    </cachestore-scheme>
    <write-delay>5000ms</write-delay>
    <write-batch-factor>0.1</write-batch-factor>
    </read-write-backing-map-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    </caching-schemes>
    /Niklas

    Hi,
    Just wanted to report back on some other findings.
    I'm not sure why, but I actually ran into what you just talked about. Again.
    I found this forum post about the exact same issue:
    Unexpected effects of <partitioned> option for external backing map
    (Note that the order of some elements in this shouldn't be allowed according to a strict xsd check)
    I also added configuration for <write-max-batch-size>, <write-delay> and <write-batch-factor>.
    That improved writing a lot.
    My final config now looks something like this:
    <read-write-backing-map-scheme>
    <internal-cache-scheme>
    <external-scheme>
    <nio-memory-manager/>
    *<high-units>1000000</high-units>*
    *<unit-calculator>BINARY</unit-calculator>*
    *<unit-factor>1048576</unit-factor>*
    </external-scheme>
    </internal-cache-scheme>
    <write-max-batch-size>128</write-max-batch-size>
    <cachestore-scheme>
    <class-scheme>
    <class-name>my.stuff.PersistentCacheStoreFacade</class-name>
    <init-params>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>{cache-name}</param-value>
    </init-param>
    </init-params>
    </class-scheme>
    </cachestore-scheme>
    <write-delay>5000ms</write-delay>
    <write-batch-factor>0.1</write-batch-factor>
    </read-write-backing-map-scheme>

  • Using a partitionned cache with off-heap storage for backup data

    Hi,
    Is it possible to define a partitionned cache (with data into the heap) with off-heap storage for backup data ?
    I think it could be worthwhile to do so, as backup data are associated with a different access pattern.
    If so, what are the impacts of such off-heap storage for backup data ?
    Particularly, what are the impacts on performance ?
    Thanks.
    Regards,
    Dominique

    Hi,
    It seems what using scheme for backup-store is broken in latest version of Coherence, I've got an exception using your setup.
    2010-07-24 12:21:16.562/7.969 Oracle Coherence GE 3.6.0.0 <Error> (thread=DistributedCache, member=1): java.lang.NullPointerException
         at com.tangosol.net.DefaultConfigurableCacheFactory.findSchemeMapping(DefaultConfigurableCacheFactory.java:466)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage$BackingManager.isPartitioned(PartitionedCache.java:10)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.instantiateBackupMap(PartitionedCache.java:24)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.setCacheName(PartitionedCache.java:29)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ServiceConfig$ConfigListener.entryInserted(PartitionedCache.java:17)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:266)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:226)
         at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:556)
         at com.tangosol.util.ObservableHashMap.dispatchEvent(ObservableHashMap.java:229)
         at com.tangosol.util.ObservableHashMap$Entry.onAdd(ObservableHashMap.java:270)
         at com.tangosol.util.SafeHashMap.put(SafeHashMap.java:244)
         at com.tangosol.coherence.component.util.ServiceConfig$Map.put(ServiceConfig.java:43)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$StorageIdRequest.onReceived(PartitionedCache.java:45)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.java:11)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.java:33)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.java:3)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.java:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.java:42)
         at java.lang.Thread.run(Thread.java:619)Tracing in debuger has shown what problem is in PartitionedCache$Storage#setCacheName(String) method, it calls instantiateBackingMap(String) before setting __m_CacheName field.
    It is broken in 3.6.0b17229
    PS using asynchronous wrapper around disk based backup storage should reduce performance impact

  • HT1379 my internet connection is incredibly slow - I know it is not the fault of the modem as other devices are fast. This article was suggested to me as a solution. I think they were just trying to get me off their back. Anyone else experience this?

    my internet connection is incredibly slow - I know it is not the fault of the modem as other devices are fast. This article was suggested to me as a solution. I think they were just trying to get me off their back. Anyone else experience this?

    If Safari is getting very slow:
    (Presumably you regularly empty your Safari cache by deleting the following file:
    Home/Library/Caches/com.apple.Safari/cache.db
    and clear your History)
    Adding Open DNS codes to your Network Preferences, should give good results in terms of speed-up as well as added security, (including anti-phishing and redirects) (Full information about Open DNS is here:   http://www.opendns.com/home-solutions ) and further independent information can be read here:
    http://reviews.cnet.com/8301-13727_7-57338784-263/free-dnscrypt-tool-enhances-ma c-web-security/?tag=mncol;txt
    and here:
    http://www.macworld.com/article/1146064/troubleshootdns.html?t=234
    If you are using a single computer: Open System Preferences/Network. Double click on your connection type, or select it in the drop-down menu, and in the box marked 'DNS Servers' add the following two numbers:
    208.67.222.222
    208.67.220.220
    (You can also enter them if you click on Advanced and then DNS)
    Sometimes reversing the order of the DNS numbers can be beneficial in cases where there is a long delay before web pages start to load, and then suddenly load at normal speed:
    http://support.apple.com/kb/TS2296
    If your computer is part of a network:please refer to this page: http://www.opendns.com/start/best_practices/#your_network and follow the advice given.
    If you use a Router, make sure it has the latest firmware installed.
    One reason for a slowness in page loading may be the 'DNS Pre-fetching' feature of Safari 5.x as is described here:
    http://support.apple.com/kb/TS3408?viewlocale=en_US
    You can cancel DNS pre-fetching by going to Terminal and typing:
    defaults write com.apple.safari WebKitDNSPrefetchingEnabled -boolean false
    You have to restart Safari for it to take effect.
    If Safari seems to hang for ages:
    If you have a lot of tabs open and/or a lot of pages running Flash, Safari can sometimes 'hang', requiring a restart of Safari. This can often be inconvenient, and as it is rarely Safari itself that is hanging but merely one of its plug-ins, usually Flash, there is a way using Terminal to restart the plug-ins (without restarting Safari and losing your tabs) by quitting the WebPluginHost process:
    Open the Terminal from the Utilities folder in /Applications and type
    killall -9 WebKitPluginHost
    Note that this command kills all Safari plug-ins, not just Flash. All plug-ins should start back up when you reload the page.
    Then go back to Safari and refresh any pages that were using the Flash plug-in. This also fixes the Beachball of Death. Try this whenever Safari gets slow or freezes. The later versions of Flash 10.1 onwards appear to have improved the situation somewhat, but haven't completed eliminated it.
    For this and other reasons Apple switched their websites to HTML5 in January 2011:
    http://www.appleinsider.com/articles/11/01/26/apple_revamps_its_public_website_u sing_html5.html
    For Snow Leopard/Lion users this should also be read:
    http://support.apple.com/kb/TS3408

  • How do I combine the Coherence 3.5 partitioned backing map with overflow?

    I would like to set up a near cache where the back cache uses an overflow map that uses a partitioned backing map as front and a file (or Berkley DB) based back. I would like the storage for both primary and backup storage to use the same configuration. I tried the following cache config (I am not even sure this say anything about how the backup storage should be configured, except that I say it should be off-heap) :
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
        <caching-scheme-mapping>
            <cache-mapping>
                <cache-name>near-small</cache-name>
                <scheme-name>near-schema</scheme-name>
            </cache-mapping>
        </caching-scheme-mapping>
        <caching-schemes>
            <near-scheme>
                <scheme-name>near-schema</scheme-name>
                <front-scheme>
                    <local-scheme>
                        <eviction-policy>HYBRID</eviction-policy>
                        <high-units>10000</high-units>
                    </local-scheme>
                </front-scheme>
                <back-scheme>
                    <distributed-scheme>
                        <scheme-name>near-distributed-scheme</scheme-name>
                        <service-name>PartitionedOffHeap</service-name>
                        <backup-count>1</backup-count>
                        <thread-count>4</thread-count>
                        <serializer>
                            <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
                        </serializer>
                        <backing-map-scheme>
                            <overflow-scheme>
                                <scheme-name>OverflowScheme</scheme-name>
                                <front-scheme>
                                    <external-scheme>
                                        <nio-memory-manager/>
                                        <unit-calculator>BINARY</unit-calculator>
                                        <high-units>256</high-units>
                                        <unit-factor>1048576</unit-factor>
                                    </external-scheme>
                                </front-scheme>
                                <back-scheme>
                                    <external-scheme>
                                        <scheme-name>DiskScheme</scheme-name>
                                        <lh-file-manager>
                                            <directory>./</directory>
                                        </lh-file-manager>
                                    </external-scheme>
                                </back-scheme>
                            </overflow-scheme>
                            <partitioned>true</partitioned>
                        </backing-map-scheme>
                        <backup-storage>
                            <type>off-heap</type>
                        </backup-storage>
                        <autostart>true</autostart>
                    </distributed-scheme>
                </back-scheme>
                <invalidation-strategy>present</invalidation-strategy>
                <autostart>true</autostart>
            </near-scheme>
            <!--
            Invocation Service scheme.
            -->
            <invocation-scheme>
                <scheme-name>example-invocation</scheme-name>
                <service-name>InvocationService</service-name>
                <autostart system-property="tangosol.coherence.invocation.autostart">true</autostart>
            </invocation-scheme>
        </caching-schemes>
    </cache-config>This all goes well when I start the cache node(s) but when i start an application that try to use the cache I get the error message:
    2009-04-24 08:20:24.925/17.877 Oracle Coherence GE 3.5/453 (Pre-release) <Error> (thread=DistributedCache:PartitionedOffHeap, member=1): java.lang.IllegalStateException: Partition backing map com.tangosol.net.cache.OverflowMap does not implement ConfigurableCacheMap
         at com.tangosol.net.partition.ObservableSplittingBackingCache.createPartition(ObservableSplittingBackingCache.java:100)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.initializePartitions(DistributedCache.CDB:10)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.instantiateResourceMap(DistributedCache.CDB:63)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.setCacheName(DistributedCache.CDB:27)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ConfigListener.entryInserted(DistributedCache.CDB:15)
    How should I change my cache config to make this work?
    Best Regards
    Magnus

    Magnus,
    The optimizations related to efficiently supporting overflow-style caching are not included in Coherence 3.5. I created COH-2338 and COH-2339 to track the progress of the related issues.
    There are four different implementations of the PartitionAwareBackingMap for Coherence 3.5:
    * PartitionSplittingBackingMap is the simplest implementation that simply partitions data across a number of backing maps; it is not observable.
    * ObservableSplittingBackingMap is the observable implementation; it extends WrapperObservableMap and delegates to (wraps) a PartitionSplittingBackingMap.
    * ObservableSplittingBackingCache is an extension to the ObservableSplittingBackingMap that knows how to manage ConfigurableCacheMap instances as the underlying per-partition backing maps; in other words, it can spread out and coalesce a configured amount of memory (etc.) across all the actual backing maps.
    * ReadWriteSplittingBackingMap is an extension of the ReadWriteBackingMap that is partition-aware.
    The DefaultConfigurableCacheFactory currently only uses the ObservableSplittingBackingCache and the ReadWriteSplittingBackingMap; COH-2338 relates to the request for improvement to add support for the other two implementations as well. Additionally, optimizations to load balancing (where overflow caching tends to get bogged down by many small I/O operations) will be important; those are tracked by COH-2339.
    Peace,
    Cameron Purdy
    Oracle Coherence

  • TS2634 My problem - when syncing and error messages  comes up:  iTunes could not sync calendars to the iPhone because an error occurred while margin data."  I've tried turning the phone off and back on, & tried both USB ports but get the same thing.  What

    My problem - when syncing and error messages  comes up:  iTunes could not sync calendars to the iPhone because an error occurred while margin data."  I've tried turning the phone off and back on, & tried both USB ports but get the same thing.  What can I do next since it doesn't give me even one clue as to what the error would be?

    Before I started to resync calendars one by one as suggested in the troubleshooting article, I remembered something that came up in a sync when I first attempted :  a 'which one do you want to keep' message about a repeating calendar event, which came up with three options, one from Calendar, and two from iCal on the phone.  I deleted that event, then went through the calendar resync one by one, and all seems OK now.
    In Music there is a way to find 'ghost' items that show up as grayed-out on the menus, so that you can try to reassociate or delete them.  It would be nice to have a similar way to work with Calendar!
    Thanks for pointing me to the right article.

  • Is anyone having issues syncing the iPhone wifi hot spot to iPad, Mac, Etc..?  I constantly have to turn it off and back on to get them to connect.  I with it was a little more seamless... Thoughts?

    Is anyone having issues syncing the iPhone wifi hot spot to iPad, Mac, Etc..?  I constantly have to turn it off and back on to get them to connect.  I with it was a little more seamless... Thoughts?

    Thanks for the swift reply, I have been looking online and a loose plug seems to be somewhat of an issue with many, I hope mine is actually a problem and not what others are experiencing. It's taken me this long to even reach out for the simple fact I HATE being a complainer but this is just horrible.
    Do you have an iPad 3 as well? And is yours not experiencing any issues close to mine?
    Thanks again!

  • Keytool seems to generate private key outside of HSM

    I am investigating integration with LunaSA (Safenet HSM) and JDK.
    LunaSA rejects key generation through JDK PKCS#11 wrapper.
    When I execute "keytool" command, then, PKCS#11 wrapper seems to generate
    private key outside of the HSM.
    Actually, the PKCS#11 log show the private key objects like this:
    14:10:12 01868-3212:STRTCreateObject {Sesn=1 AttrList={CKA_SENSITIVE="01"
    CKA_EXTRACTABLE="00" CKA_DECRYPT="01" CKA_SIGN="01" CKA_UNWRAP="01"
    CKA_TOKEN="01" CKA_CLASS="03000000" CKA_PRIVATE="01" CKA_KEY_TYPE="00000000"
    CKA_ID="iText"
    CKA_MODULUS="866b89f28013b0dd1217189a1f1adea2c23d3d20c0ee11b3360b2988869a8d1
    ccbead99f7d8111eea74ff7791196c1173ed732cadce517381163c5320af4486a3bd174cd581
    645eb2b39e4fe2d9aa92c7723303271e9e27ef2f994e668be0bd1d8fd3fda7cbe654e7934553
    4493c58a032c558a3a49e771b1c72c8d01e4adb6e09c17d2816a1f2ea054f074d63e6961b477
    4d60ed23995a596d102e24f65c7c29593b3c1e5536083b6023e97a1181d8466796e72debea5f
    19150d3b933629579fc3f3588843455d6b16db17f6e40dc7e69f0fdd3bee9d3acace845d075f
    1df72704c4a8169d6802e289ed5b15597b0bccd63e83f725a2d3d4c0319880de7b319"
    CKA_PRIVATE_EXPONENT="6a82617ee61f3420278a67730fbc81b6a38454a0545f0f655a2844
    13aadc617df4d234f81c411e4d6503870ac67616afed9a24e3fb5e0724e51a921111fef8363d
    09bdac4be4f227e24b70783af8769e0614bac6edde2e1afb39e9d31c21a249f7cecb3ebb633d
    f08d377b5fffbbb259d580ebb856e33d6b1d0292bddd92e104cc5465def444f28ff1e28512ba
    2429ebc7a350b78f54cafad66cb60a608c752fd566454a5a1b7eb4d530d80587220fe7cc8915
    66bd7d2bbf74ab93d4e4a42468513426c59e65963a001bfa85ff533c266f625203550f8e4b0b
    1030f3503b46b1412910464aa5fbccf256f320801d31528275d2e4f43dc43207d759f32a0070
    51" CKA_PUBLIC_EXPONENT="010001"
    CKA_PRIME_1="c63c1c1fb8e34cf9139887e237282c3c6aa506b91ea977526b6a86836653334
    26529637223b3f73376c6fed5d19b58596e035bc8207c1b4b0fc63f9bc5dc8ace695322022d8
    dd471b9650a2f4115bf3e1bda5d8ed41bf8417008d0d6093eee6917d94b69cc3eeb82549a448
    80dc6ce5fc24c007aaebb5866de0105bb3d57fb5d"
    CKA_PRIME_2="ad96fcc0f3c9f177648415f1b68e9faa36e0fe538978742f2a474ff66cd8df8
    05bd8ac86850575964a4ba787173e258a96414df7ef4706ccb33a8bac3cb2d7f1f56d629fe9d
    a7cb915a46ff399aea4e58011674704560e5c4efe62f14766ef240e516fe63823e68cfc936cf
    6e1c53ba2461128dce65a3107ecc0688cffa216ed"
    CKA_EXPONENT_1="02fe99762936d5ccd56cf2708a60c2fa4eaa1b85e45eaefcc1bea4358bf0
    29d010f3251b6e4aa3ab555a00337ead181291c4df3810b58f3bfd0b039ef8c832189822b75a
    cd115d6a3260c25ca06111b8807735fe9859abd0613ee0d8badf067ef3eb46665cbd7e95436d
    e9271cfe29d3ec7d756c6503537c8a51fda22c750dc9"
    CKA_EXPONENT_2="a4285cedbb9e05937aa2ce7dbebe318fae46273ca88c189361cffe767388
    c41386c7e89f6dbc33eee4639711d1911bbf6b48668b48e44a31da6c4b199e6d2279d6369345
    d6c89f9a0835710955142b2c3d6837da98e728bd72966ecaed5312636e86e4e339c3f98aea70
    2063782e24aed8c3f178b4fe25cff0bc2422f2bc3e21"
    CKA_COEFFICIENT="6b26b189f84fe75ce38220fa49c5e76ffd9ffabfdc311606dedce7b16e1
    0c10f201fb4332f6497a7d26052e9f17b930fd574ae152047fce783516cd5b75b8d8927875b2
    2c12393795d4f397d736f1cf6eb81d4e2252a227455f93c1587c6b881837fe9e0cf9dd01a972
    6a15830e5bc83e4e0047f3d1d8c3858bfe5adf12834a2" } }
    14:10:12 01868-3212:FINICreateObject
    ***CKR_TEMPLATE_INCONSISTENT***(26328ms) {Obj=0 }
    The command I tried is:
    C:\Program Files\Java\jdk1.6.0_21\jre\bin>keytool -v -genkey -alias iText -keystore NONE -keyalg RSA -keysize 2048 -dname "CN=test,O=GlobalSign,C=JP" -storetype pkcs11
    Is it specification of keytool?

    Well, yes, exporting a PrivateKeyEntry to a PKCS12 keystore does save (or, backup) your keypair as a copy on your disk, and it's quite a standard format. In fact, quite a lot of people get their keypair this way, and they can run -importkeystore to import (for you, restore) it into their JKS keystore.

  • Wifi won't stay connected after switching phone off and back on

    This does not seem to be the apparently common problem of either dropping wi-fi signal OR losing wi-fi after the phone sleeps.
    I have a 3GS. My wi-fi works fine all day while I'm around the house even with multiple sleep events. However, when I switch off my phone at night and then turn it back on again the next morning, the phone stays on 3G. If I go to the wi-fi settings, it shoes wi-fi is "on" and I can select my network and it will join it right away. It just doesn't rejoin automatically.
    I am not certain about this, but I think this problem may have only started when I recently switched on the "ask to join networks" setting. I have tried turning this off but still the problem remains.
    My wife's 3GS and my son's 4 both stay connected after a switch off and back on, and we are all using the same network.
    If anyone has any suggestions I would be most appreciative. With three of us now sharing the cell data plan we are getting very close to the limit each month and want to maximize wi-fi usage.
    Thanks.

    SKAshanchi wrote:
    From this article:
    http://support.apple.com/kb/HT5883?viewlocale=en_US&locale=en_US
    Note: Touch ID cannot be used for purchases if Require Password in Settings > General > Restrictions is set to Immediately.
    I don't have any restrictions set on my phone at all.

  • My computer is running SO slow. The intermet also keeps freezing up and I have to turn airport off then back on/refresh before it will work again. I dont have enough space on my start up disc to run certain programs. Easiest way to fix?

    My computer is running SO slow. The intermet also keeps freezing up and I have to turn airport off then back on/refresh before it will work again. I dont have enough space on my start up disc to run certain programs. It will say I need to quit programsin order for things to run.  Easiest way to fix? Im not great with computers!
    Running mac os x version 10.6.8

    Easiest way is to have an external drive to which you copy the things you store like pictures, movies, and music
    which take up a lot of space. Then delete them fron the main drive and clean it up with one of the maintenance utilities. You can readily access the external drive's contents whenever you wish.
    http://lifehacker.com/5814440/what-kind-of-maintenance-do-i-need-to-do-on-my-mac
    http://mac360.com/2008/07/the_top_7_free_utilities_to_maintain_a_mac/

  • I keep getting an error 05 code on my t31 and turning the camera off and back on does not work.

    I keep getting an error code 05 when I try to use certain modes on my Rebel T3i.  It seems as though my auto flash is stuck.  Is this a common complaint....and if so.....what is the answer to deal with this issue.  I have followed the instructions of turning the camera off and back on....to no avail.  HELP!!

    Hi Hydra171,
    The Error 5 error code indicates a malfunction in the popup flash mechanism.
    If this is not cleared by turning the camera off, then on, your camera will require service to correct this issue.
    You may set up the repair for your camera here.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • TouchID for App Store purchases doesn't work after turning phone off and back on?

    TouchID for unlocking my iPhone 5s works 99.9% of the time.  It's fantastic.  However, using it to authorize App Store purchases, NOT in-app purchases, is less fantastic.  In my case, it seems like every time I turn my phone off and back on, the phone forgets it's can use TouchID to authorize app purchases.  I have to go into Settings -> General -> Passcode & Fingerprint -> (enter my passcode) -> Fingerprints -> iTunes & App Store, and turn that off.  Then I have to turn it back on and enter my Apple ID password.  Not exactly a quick procedure.  The good news is that once I turn it back on, it works like it's supposed to until I turn my phone off and back on again.  If it can remember to use TouchID for unlocking the phone, why can't it remember to use TouchID for authorizing App Store stuff?  Am I missing something?
    Anyone else experiencing the same thing and/or have a solution?  Thanks!

    SKAshanchi wrote:
    From this article:
    http://support.apple.com/kb/HT5883?viewlocale=en_US&locale=en_US
    Note: Touch ID cannot be used for purchases if Require Password in Settings > General > Restrictions is set to Immediately.
    I don't have any restrictions set on my phone at all.

  • Macbook Pro camera turns off and back on.

    When I am videochating with my friends or for any reason I have my camera on, most of the times the camera turns off (Green Light Off) and then back on. While the light turns off my video gets stuck and then when the camera turns back on the video continues to function normally but it bother me a lot because it is a new computer I just bought for christmas and whenever I am videochatting the camera turns off and back on. PLEASE HELP!

    Thank you for your detailed troubleshooting attempts.  Very helpful.  Sorry, I cannot read "logs."  My eyes just glass over on those things.  Hopefully, a knowledgeable user will come along shortly to decipher for you.
    I noticed from the pics that your location setting is "untitled."  Have you tried the "Automatic" setting?  Run the diagnostic test?  Results?
    Try the basics first:
       Change your router channel number.  Most times this works & is all you have to do.
    Disconnect & reconnect your modem.  unplug it for about 10 seconds.  Plug it back in.  Do the same for Apple’s routers.  Wait for everything to reboot.
    System Preferences>Network
    Click the Assist Me button.
    In the next window that pops up, click the Diagnostic button & do the necessary.
    Research Knowledge Base for network problems that pertain to the OS that is currently installed on your computer.   See these basic networking KB Articles:  http://support.apple.com/kb/HT1401 AirPort troubleshooting guide
    http://support.apple.com/kb/HT4628  Wi-Fi: How to troubleshoot Wi-Fi connectivity
    http://support.apple.com/kb/HT2712 Using network locations in Mac OS X
    Manually provided DNS server addresses are higher priority than DHCP's
    http://support.apple.com/kb/HT1714 Solutions for connecting to the Internet, setting up a small network, and troubleshooting
    ============================
    What to do when you can't connect to the Internet
    Also, run the Airport Utility app which is located inside the Utilities folder.
    =====================
    If using a  Linksys router, contact LinkSys Customer Support and/or post in their forums.
    If using Apple's Airport, please re-post over in one of the AirPort Forums.

Maybe you are looking for