On Tue, 04 Sep 2018 22:58:53 +0900, Soe Ye Htet wrote: > > [1 <multipart/alternative (7bit)>] > [1.1 <text/plain; UTF-8 (7bit)>] > Dear RYU Team, > > I have faced the memory error in running RYU application. I try to fix this > but it was not successful. My error statement as per attached log.
MemoryError means the system is out of memory. https://docs.python.org/3/library/exceptions.html?highlight=memoryerror#MemoryError Did you do something that eats up a lot of memory? > gateway1@gateway1:~/Desktop/ryu-master(Edited)/ryu/app$ ryu-manager > finalrerouting.py > loading app finalrerouting.py > loading app ryu.topology.switches > loading app ryu.controller.ofp_handler > instantiating app finalrerouting.py of node_failure > instantiating app ryu.topology.switches of Switches > instantiating app ryu.controller.ofp_handler of OFPHandler > Switch_ID 1152921504606846979 (IP address ('10.0.0.3', 54266)) is connected > Current_Connected_Switch {1152921504606846979L: ('10.0.0.3', 54266)} > Switch_ID 1152921504606846980 (IP address ('10.0.0.4', 39202)) is connected > Current_Connected_Switch {1152921504606846979L: ('10.0.0.3', 54266), > 1152921504606846980L: ('10.0.0.4', 39202)} > Switch_ID 1152921504606846981 (IP address ('10.0.0.5', 35620)) is connected > Current_Connected_Switch {1152921504606846979L: ('10.0.0.3', 54266), > 1152921504606846980L: ('10.0.0.4', 39202), 1152921504606846981L: > ('10.0.0.5', 35620)} > Switch_ID 1152921504606846985 (IP address ('10.0.0.9', 34164)) is connected > Current_Connected_Switch {1152921504606846985L: ('10.0.0.9', 34164), > 1152921504606846979L: ('10.0.0.3', 54266), 1152921504606846980L: > ('10.0.0.4', 39202), 1152921504606846981L: ('10.0.0.5', 35620)} > Switch_ID 1152921504606846978 (IP address ('10.0.0.2', 33202)) is connected > Current_Connected_Switch {1152921504606846985L: ('10.0.0.9', 34164), > 1152921504606846978L: ('10.0.0.2', 33202), 1152921504606846979L: > ('10.0.0.3', 54266), 1152921504606846980L: ('10.0.0.4', 39202), > 1152921504606846981L: ('10.0.0.5', 35620)} > Switch_ID 255421810004811 (IP address ('10.0.0.8', 59836)) is connected > Current_Connected_Switch {1152921504606846978L: ('10.0.0.2', 33202), > 1152921504606846979L: ('10.0.0.3', 54266), 1152921504606846980L: > ('10.0.0.4', 39202), 1152921504606846981L: ('10.0.0.5', 35620), > 1152921504606846985L: ('10.0.0.9', 34164), 255421810004811L: ('10.0.0.8', > 59836)} > Switch_ID 1152921504606846982 (IP address ('10.0.0.6', 52652)) is connected > Current_Connected_Switch {1152921504606846978L: ('10.0.0.2', 33202), > 1152921504606846979L: ('10.0.0.3', 54266), 1152921504606846980L: > ('10.0.0.4', 39202), 1152921504606846981L: ('10.0.0.5', 35620), > 1152921504606846982L: ('10.0.0.6', 52652), 1152921504606846985L: > ('10.0.0.9', 34164), 255421810004811L: ('10.0.0.8', 59836)} > Switch_ID 1152921504606846977 (IP address ('10.0.0.1', 35032)) is connected > Current_Connected_Switch {1152921504606846977L: ('10.0.0.1', 35032), > 1152921504606846978L: ('10.0.0.2', 33202), 1152921504606846979L: > ('10.0.0.3', 54266), 1152921504606846980L: ('10.0.0.4', 39202), > 1152921504606846981L: ('10.0.0.5', 35620), 1152921504606846982L: > ('10.0.0.6', 52652), 1152921504606846985L: ('10.0.0.9', 34164), > 255421810004811L: ('10.0.0.8', 59836)} > Traceback (most recent call last): > File "/usr/lib/python2.7/logging/__init__.py", line 861, in emit > File "/usr/lib/python2.7/logging/__init__.py", line 734, in format > File "/usr/lib/python2.7/logging/__init__.py", line 481, in format > File "/usr/lib/python2.7/logging/__init__.py", line 439, in > formatException > File "/usr/lib/python2.7/traceback.py", line 125, in print_exception > File "/usr/lib/python2.7/traceback.py", line 67, in print_tb > File "/usr/lib/python2.7/traceback.py", line 13, in _print > MemoryError: out of memory > Logged from file app_manager.py, line 299 > Error in the datapath 1000000000000002 from ('10.0.0.2', 33202) > Traceback (most recent call last): > File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line > 457, in fire_timers > File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/timer.py", > line 58, in __call__ > cb(*args, **kw) > File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/__init__.py", > line 154, in _timeout > current.throw(exc) > File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", > line 214, in main > result = function(*args, **kwargs) > File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 69, in > _launch > File "/usr/lib/python2.7/traceback.py", line 242, in format_exc > return ''.join(format_exception(etype, value, tb, limit)) > File "/usr/lib/python2.7/traceback.py", line 141, in format_exception > list = list + format_tb(tb, limit) > File "/usr/lib/python2.7/traceback.py", line 76, in format_tb > return format_list(extract_tb(tb, limit)) > File "/usr/lib/python2.7/traceback.py", line 100, in extract_tb > linecache.checkcache(filename) > File "/usr/lib/python2.7/linecache.py", line 64, in checkcache > stat = os.stat(fullname) > MemoryError > Error in the datapath 1000000000000005 from ('10.0.0.5', 35620) > hub: uncaught exception: Traceback (most recent call last): > File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 59, in > _launch > return func(*args, **kwargs) > File > "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line > 536, in datapath_connection_factory > File > "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line > 456, in serve > hub.kill(send_thr) > File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 95, in > kill > thread.kill() > File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", > line 240, in kill > File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", > line 294, in kill > g.throw(*throw_args) > MemoryError > > Traceback (most recent call last): > File "/usr/local/bin/ryu-manager", line 9, in <module> > load_entry_point('ryu==4.26', 'console_scripts', 'ryu-manager')() > File "/usr/local/lib/python2.7/dist-packages/ryu/cmd/manager.py", line > 114, in main > app_mgr.close() > File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py", > line 549, in close > self.uninstantiate(app_name) > File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py", > line 533, in uninstantiate > app.stop() > File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py", > line 185, in stop > hub.joinall(self.threads) > File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 102, > in joinall > t.wait() > File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", > line 175, in wait > return self._exit_event.wait() > File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line > 121, in wait > return hubs.get_hub().switch() > File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line > 294, in switch > return self.greenlet.switch() > File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line > 348, in run > self.wait(0) > File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/poll.py", line > 85, in wait > presult = self.do_poll(seconds) > File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/epolls.py", > line 62, in do_poll > return self.poll.poll(seconds) > MemoryError > > > Best Regards, > Soe Ye Htet > [1.2 <text/html; UTF-8 (quoted-printable)>] > [2 <text/plain; us-ascii (7bit)>] > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > [3 <text/plain; us-ascii (7bit)>] > _______________________________________________ > Ryu-devel mailing list > Ryu-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ryu-devel ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel