Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

hwchan's profile - activity

2014-09-04 15:04:26 -0500 received badge  Popular Question (source)
2014-08-01 01:47:26 -0500 received badge  Famous Question (source)
2014-04-15 07:49:17 -0500 received badge  Notable Question (source)
2014-04-15 07:49:17 -0500 received badge  Popular Question (source)
2010-12-15 19:25:51 -0500 commented answer GigaSpaces .Net v6.6.4 "Transaction not active" Exception Message

code snippet:

PollingEventDriven(MinConcurrentConsumers = 1, MaxConcurrentConsumers = 4)
    public class OutputProcessor
    {
private ISpaceProxy _proxy;

public OutputProcessor(ISpaceProxy proxy, IDictionary<string, string> properties)
        {
            _proxy = proxy;
            setUpProperties(properties);
}

ReceiveHandler
        public ReadReceiveOperationHandler<Data> ReceiveHandler()
        {
            ReadReceiveOperationHandler<Data> receiveHandler = new ReadReceiveOperationHandler<Data>();
            receiveHandler.NonBlocking = true;
            receiveHandler.NonBlockingFactor = 10;
            return receiveHandler;
}

EventTemplate
        public Data UnprocessedData
        {
            get
            {
                Data template = new Data();
                template.State = DataState.OutputReady;
                return template;
            }
}

DataEventHandler
        public void ProcessData(Data job)
        {
bool isFinish = false;

using (ITransaction tx = _proxy.CreateLocalTransaction())
            {
                try
                {
                    Data lockJob = takeData(job, tx);
                    if (lockJob == null)
                    {
                        tx.Abort();
                        tx.Dispose();
                        return;
                    }
                    .......
}

2010-12-15 03:09:49 -0500 commented answer GigaSpaces .Net v6.6.4 "Transaction not active" Exception Message

Hi Eitan,

We use remote proxy and inject it into the processor instance. I.e.,
_proxy = SpaceProxyProviderFactory.Instance.FindSpace(spaceUrl);

EventListenerContainerFactory.CreateContainer<Data>(_proxy,
new OutputProcessor(_proxy, _properties));

Btw, isn't the behavior of polling container working against the entire cluster in round robin manner?

2010-07-29 21:34:37 -0500 commented answer about mirror, "Could not create the driver from NHibernate.Driver.MySQL"

Thanks for the help, I fix it and it is not the GigaSpaces issue.

http://www.gigaspaces.com/wiki/displa...

<property name="connection.driver_class">NHibernate.Driver.MySQLDataDriver</property>

actually, it should be NHibernate.Driver.MySqlDataDriver, for MySQL 5.1 net connector

Edited by: HW Chan on Jul 30, 2010 1:35 AM

2010-07-29 01:43:16 -0500 asked a question about mirror, "Could not create the driver from NHibernate.Driver.MySQL"

I have added the MySQL.Data.dll into the windows GAC as well as the mirror PU project. Also, I have set the dll "local copy = true" so that the MySql.Data.dll is copied into Mirror PU folder under the Deploy folder.

I got the exception while i am deploying the mirror service PU,

System.Exception was unhandled by user code Message="Error creating NHibernate Session Factory" Source="GigaSpaces.Practices.ExternalDataSource.NHibernate" StackTrace: at GigaSpaces.Practices.ExternalDataSource.NHibernate.SessionFactoryBuilder.GetFactory(String hibernateFile, String hbmDirectory) in C:\GigaSpaces\XAP.NET 7.1.1\Practices\ExternalDataSource\NHibernate\SessionFactoryBuilder.cs:line 36 at GigaSpaces.Practices.ExternalDataSource.NHibernate.NHibernateExternalDataSource.Init(Dictionary 2 properties) in C:\GigaSpaces\XAP.NET 7.1.1\Practices\ExternalDataSource\NHibernate\NHibernateExternalDataSource.cs:line 82 at GigaSpaces.Core.Internal.Pbs.Executers.Persistency.PbsPersistencyInit.Execute(PbsMemoryStream input, PbsMemoryStream output, Int64 handleId) at GigaSpaces.Core.Internal.Pbs.Executers.PbsExecutersBundle1.Execute(Byte operationCode, Int64 handleId, PbsMemoryStream input, PbsMemoryStream output) at GigaSpaces.Core.Internal.Pbs.Executers.PbsExecuter.ExecuteCommand(Byte[] command) InnerException: NHibernate.HibernateException Message="Could not create the driver from NHibernate.Driver.MySQLDataDriver." Source="NHibernate" StackTrace: at NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary2 settings) at NHibernate.Connection.ConnectionProvider.Configure(IDictionary2 settings) at NHibernate.Connection.ConnectionProviderFactory.NewConnectionProvider(IDictionary2 settings) at NHibernate.Cfg.SettingsFactory.BuildSettings(IDictionary 2 properties) at NHibernate.Cfg.Configuration.BuildSettings() at NHibernate.Cfg.Configuration.BuildSessionFactory() at GigaSpaces.Practices.ExternalDataSource.NHibernate.SessionFactoryBuilder.GetFactory(String hibernateFile, String hbmDirectory) in C:\GigaSpaces\XAP.NET 7.1.1\Practices\ExternalDataSource\NHibernate\SessionFactoryBuilder.cs:line 32 InnerException: System.TypeLoadException Message="Could not load type NHibernate.Driver.MySQLDataDriver. Possible cause: no assembly name specified." Source="NHibernate" TypeName="" StackTrace: at NHibernate.Util.ReflectHelper.TypeFromAssembly(AssemblyQualifiedTypeName name, Boolean throwOnError) at NHibernate.Util.ReflectHelper.ClassForName(String name) at NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary`2 settings) InnerException:

Please help, Thanks

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3481]{quote}

2010-07-13 00:43:55 -0500 asked a question XAP.NET 7.1.1 - java.lang.UnsatisfiedLinkError: no WinMon in java.library.p

Hi,

When I start a GSC in GS-UI, I got the following exception:

C:\GigaSpaces\XAP.NET 7.1.1\Runtime\Java\jre\bin\java.exe
-Xbootclasspath/p:C:\GigaSpaces\XAP.NET 7.1.1\Runtime\lib\platform\xml;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\lib\platform\xml\serializer.jar;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\lib\platform\xml\xalan.jar;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\lib\platform\xml\xercesImpl.jar;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\lib\platform\xml\xml-apis.jar;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\Java\jre\lib\alt-rt.jar;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\Java\jre\lib\resources.jar;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\Java\jre\lib\rt.jar;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\Java\jre\lib\sunrsasign.jar;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\Java\jre\lib\jsse.jar;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\Java\jre\lib\jce.jar;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\Java\jre\lib\charsets.jar;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\Java\jre\classes
-cp
.;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\lib\platform\\boot\gs-boot.jar;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\lib\platform\\jdbc\hsqldb.jar;C:\GigaSpaces\XAP.NET 7.1.1\Runtime\lib\platform\\sigar\sigar.jar;
-server
-showversion
-Xmx256m
-Dsun.rmi.dgc.client.gcInterval=36000000
-Dsun.rmi.dgc.server.gcInterval=36000000
-Djava.rmi.server.hostname=IVY
-Djava.rmi.server.RMIClassLoaderSpi=default
-Djava.rmi.server.logCalls=false
-Dcom.gs.jini_lus.locators=
-Dcom.gs.jini_lus.groups=gigaspaces-7.1.1-XAPPremium-ga
-Dcom.gs.logging.debug=true
-Djava.util.logging.config.file=C:\GigaSpaces\XAP.NET 7.1.1\Runtime\config\gs_logging.properties
com.gigaspaces.start.SystemBoot
com.gigaspaces.start.services=\"GSC\"
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Server VM (build 14.3-b01, mixed mode)
7/13/10 1:39:03 PM
CONFIG com.gigaspaces.logger.GSLogConfigLoader: Loading GigaSpaces log configuration from C:\GigaSpaces\XAP.NET 7.1.1\Runtime\config\gs_logging.properties ...

7/13/10 1:39:03 PM
CONFIG com.gigaspaces.logger.GSLogConfigLoader: Returning GigaSpaces log configuration input stream: java.io.BufferedInputStream@8b819f

Log file: C:\GigaSpaces\XAP.NET 7.1.1\Runtime\logs\2010-07-13~13.39-gigaspaces-gsc-ivy-432.log
2010-07-13 13:39:04,381 INFO com.gigaspaces.start -
==================================================
GigaSpaces ServiceGrid starting using command <com.gigaspaces.start.services="GSC">
Log created by <koning> on Tue Jul 13 13:39:04 CST 2010
==================================================
7/13/10 1:39:04 PM
CONFIG com.gigaspaces.logger.GSLogConfigLoader: GigaSpaces log configuration loaded successfully from: C:\GigaSpaces\XAP.NET 7.1.1\Runtime\config\gs_logging.properties

2010-07-13 13:39:04,848 CONFIG com.gigaspaces.start - platformJARs
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/required/commons-logging.jar
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/required/gs-runtime.jar
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/platform/jee/jta.jar
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/platform/xml/serializer.jar
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/platform/xml/xalan.jar
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/platform/xml/xercesImpl.jar
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/platform/xml/xml-apis.jar
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/../tools/groovy/embeddable
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/platform/jruby
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/platform/ext
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/platform/ant/ant-commons-net.jar
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/platform/ant/ant-launcher.jar
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/platform/ant/ant.jar
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/platform/ant/commons-net-1.4.0.jar
    file:/C:/GigaSpaces/XAP.NET%207.1.1/Runtime/lib/platform/ant/jakarta-oro-2.0.8.jar
2010-07-13 13:39:05,039 INFO com.gigaspaces.start - JMXServiceURL=service:jmx:rmi:///jndi/rmi://ivy:10099/jmxrmi
2010-07-13 13:39:05,177 INFO com.gigaspaces.start - JMX Platform MBeanServer exported with RMI Connector, creation time 130 millis
2010-07-13 13:39:05,837 GSC INFO com.gigaspaces.grid.gsc -

System Environment:
     System:
         OS Name: Windows Vista
         OS Version: 6.0
         Architecture: x86
         Number Of Processors: 2
     JVM Details:
         Java Version: 1.6.0_17, Sun Microsystems Inc.
         Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
         Java VM: Java HotSpot(TM) Server VM 14.3-b01, Sun Microsystems Inc.
         Java Home: C:\GigaSpaces\XAP.NET 7.1.1\Runtime\Java\jre
     JVM Memory:
         Max Heap Size (KB): 252480
         Current Allocated Heap Size (KB): 3746
     Network Interfaces Information:
         Host Name: ivy
         Network Interface Name: lo / Software Loopback Interface 1
         IP Address: 0:0:0:0:0:0:0:1
         IP Address: 127.0.0.1
         Network Interface Name: net0 / WAN Miniport (L2TP)
         Network Interface Name: net1 / WAN Miniport (PPTP)
         Network Interface Name: ppp0 / WAN Miniport (PPPOE)
         Network Interface Name: eth0 / WAN Miniport (IPv6)
         Network Interface Name: eth1 / WAN Miniport (IP)
         Network Interface Name: ppp1 / RAS Async Adapter
         Network Interface Name: net2 / WAN Miniport (SSTP)
         Network Interface Name: eth2 / WAN Miniport (Network Monitor)
         Network Interface Name: net3 / Bluetooth Device (RFCOMM Protocol TDI)
         Network Interface Name: eth3 / Bluetooth Device (Personal Area Network)
         Network Interface Name: eth4 / Intel(R) 82567LM Gigabit Network Connection
         IP Address: 192.168.129.30
         Network Interface Name: net4 / Intel(R) WiFi Link 5100 With PAN
         Network Interface Name: net5 / WiFi STA
         IP Address: fe80:0:0:0:a1d2:be73:c70:ec51%14
         IP Address: 192.168.255.25
         Network Interface Name: net6 / My WiFi PAN
         IP Address: fe80:0:0:0:496a:53a0:d92f:274f%15
         Network Interface Name: net7 / Teredo Tunneling Pseudo-Interface
         IP Address: fe80:0:0:0:0:ffff:ffff:fffe%16
         Network Interface Name: eth5 / VMware Virtual Ethernet Adapter for VMnet1
         Network Interface Name: eth6 ...







































(more)

2009-12-23 00:36:36 -0500 answered a question How to implement dampener in Scaling agent

Thanks anyone concern, I have figured it out.

2009-12-22 21:36:11 -0500 asked a question How to implement dampener in Scaling agent

Hi all,

I have read about the scaling agent and I want to implement a scaling agent. http://www.gigaspaces.com/wiki/displa...

Can anyone share how to implement the high/low dampener in it?

Thanks

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3339]{quote}

2009-07-14 04:18:12 -0500 asked a question Does GigaSpaces provide any API for paging?

Hi all, Recently, I want to develop a web application and present the result by pages. Hibernate would give me a simple implementation to fulfill my purpose by setting the range of first/max result.

I have done the same in GigaSpaces' space browser and the behavior is correct, say: select uid,* from com.model.test.model.test.TestTableTwo WHERE rownum(1,5) order by id

However, I could not find any existing API for paging, say gigaSpaces.readMultiple(). Although I set the sql query as "..... rownum(1,5) order by id", eventually it throws an exception said there can be only one definition for rownum due to every signature of readMultiple() requiring max no. of entries.

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3175]{quote}

2009-04-12 11:48:31 -0500 commented answer Error occurs when repeatly write and clean large amount of objects

First, thanks for your attention.

I agree with your point that the space is under huge load so there would be abnormal situations happened. I have resolved the problem by 2 measures: 1. tune the JVM on client side with large memory allocation. 2. set the no. of entries in readmultiple() in client app. with a smaller no., say from 10k to 5k.

Edited by: HW Chan on Apr 12, 2009 11:52 AM

2009-04-09 04:38:13 -0500 asked a question Tuning in Mirror service

Hi all,

After I added mirror serivce into my application, the throughput is dropped around 40% compared without mirror, I wonder there should be some tuning on the mirror service. My topology is 9 partition with 1 backup each.

As I have discovered these tunings in the forum (I guess there should be more), <bulk-size>100</bulk-size> <interval-millis>2000</interval-millis> <interval-opers>100</interval-opers> In fact, I hope someone could explain what these tunings are. (and right now, i include these tunings in the Application PU's pu.properties file)

I would like to ask any optimal tunings on the mirror service? The database I am using is MySQL 5.1, does anyone can advice on the DB side too?

Edited by: HW Chan on Apr 9, 2009 7:41 AM

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3006]{quote}

2009-04-07 05:05:08 -0500 asked a question Error occurs when repeatly write and clean large amount of objects

I encountered an error when the client application is writing a large amount of objects into the space after I clean the space using gigaspaces.clear(null). Such error occurs ocassionally but higher chance when writing large amount of objects with large number of partitions.

The test scenario: 1. each time, the client application writes 1000 objects into the space 2. write operations in client application are multitheaded 3. Totally, 20,160,000 objects are written into the space 4. The space is cleared by using gigaspaces.clear(null) after objects are completely written. 5. repeat 1~4 I found such error occurs in the 4th and 5th trial of the test.

Here is some background information: * 3 same machines each 64GB ram * 21 partitions with 1 backup, totally 42 GSC is deployed, * each JVM in GSC max/min heap size is set to 3500MB ram * each machine deployed with 14 GSC * 1 GSM is deployed in one of the machines

Here is some of the log in GSC console:

org.openspaces.core.WriteMultiplePartialFailureException: Success:0, errors:1000, [class java.rmi.RemoteException:1000 StackTrace: java.rmi.RemoteException: Multiple-operation: Can not locate an available space... at com.j_spaces.core.cluster.JSpaceClusteredProxy.prepareForScattering(JSpaceClusteredProxy.java:3241) at com.j_spaces.core.cluster.JSpaceClusteredProxy.writeMultiple_prepareForScattering(JSpaceClusteredProxy.java:3163) at com.j_spaces.core.cluster.action.ClusterSpaceWriteMultipleActionListener.writeMultiple(ClusterSpaceWriteMultipleActionListener.java:54) at com.j_spaces.core.cluster.action.ClusterSpaceWriteMultipleActionListener.onAction(ClusterSpaceWriteMultipleActionListener.java:27) at com.j_spaces.core.cluster.action.ClusterSpaceWriteMultipleActionListener.onAction(ClusterSpaceWriteMultipleActionListener.java:20) at com.j_spaces.core.client.AbstractSpaceProxy.writeMultiple(AbstractSpaceProxy.java:716) at com.j_spaces.core.client.AbstractSpaceProxy.writeMultiple(AbstractSpaceProxy.java:706) at org.openspaces.core.DefaultGigaSpace.writeMultiple(DefaultGigaSpace.java:546) at org.openspaces.core.DefaultGigaSpace.writeMultiple(DefaultGigaSpace.java:540) at com.clustertech.sunPoC.broker.Broker$DatabaseWriter.insertTlog(Broker.java:225) at com.clustertech.sunPoC.broker.Broker$DatabaseWriter.run(Broker.java:409) at java.lang.Thread.run(Thread.java:619) ]; nested exception is com.j_spaces.core.multiple.write.WriteMultiplePartialFailureException: Success:0, errors:1000, [class java.rmi.RemoteException:1000 StackTrace: java.rmi.RemoteException: Multiple-operation: Can not locate an available space... at com.j_spaces.core.cluster.JSpaceClusteredProxy.prepareForScattering(JSpaceClusteredProxy.java:3241) at com.j_spaces.core.cluster.JSpaceClusteredProxy.writeMultiple_prepareForScattering(JSpaceClusteredProxy.java:3163) at com.j_spaces.core.cluster.action.ClusterSpaceWriteMultipleActionListener.writeMultiple(ClusterSpaceWriteMultipleActionListener.java:54) at com.j_spaces.core.cluster.action.ClusterSpaceWriteMultipleActionListener.onAction(ClusterSpaceWriteMultipleActionListener.java:27) at com.j_spaces.core.cluster.action.ClusterSpaceWriteMultipleActionListener.onAction(ClusterSpaceWriteMultipleActionListener.java:20) at com.j_spaces.core.client.AbstractSpaceProxy.writeMultiple(AbstractSpaceProxy.java:716) at com.j_spaces.core.client.AbstractSpaceProxy.writeMultiple(AbstractSpaceProxy.java:706) at org.openspaces.core.DefaultGigaSpace.writeMultiple(DefaultGigaSpace.java:546) at org.openspaces.core.DefaultGigaSpace.writeMultiple(DefaultGigaSpace.java:540) at com.clustertech.sunPoC.broker.Broker$DatabaseWriter.insertTlog(Broker.java:225) at com.clustertech.sunPoC.broker.Broker$DatabaseWriter.run(Broker.java:409) at java.lang.Thread.run(Thread.java:619) ] at org.openspaces.core.exception.DefaultExceptionTranslator.internalTranslate(DefaultExceptionTranslator.java:117) at org.openspaces.core.exception.DefaultExceptionTranslator.translate(DefaultExceptionTranslator.java:47) at org.openspaces.core.DefaultGigaSpace.writeMultiple(DefaultGigaSpace.java:548) at org.openspaces.core.DefaultGigaSpace.writeMultiple(DefaultGigaSpace.java:540) at com.clustertech.sunPoC.broker.Broker$DatabaseWriter.insertTlog(Broker.java:225) at com.clustertech.sunPoC.broker.Broker$DatabaseWriter.run(Broker.java:409) at java.lang.Thread.run(Thread.java:619)

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3000]{quote}